- sftp-server
- ftpes-server-pure-ftpd
- ftpes-server-vsftpd
- command: bash -c "/netopeer_tls_cfg/update_tls.sh"
+ command: bash -c "/netopeer_tls_cfg/entrypoint.sh"
sftp-server:
container_name: sftp-server
+++ /dev/null
-{
- "building:rooms": {
- "room": [
- {
- "room-number": 3,
- "size": 3
- }
- ]
- }
-}
+++ /dev/null
-module building {
- yang-version 1.1;
- namespace "urn:building:test";
-
- prefix bld;
-
- organization "building";
- contact "my buildig address";
- description "yang model for building";
- revision "2018-02-13"{
- description "initial version";
- }
-
- container rooms{
- list room{
- key room-number;
- leaf room-number{
- type uint16;
- }
- leaf size {
- type uint32;
- }
- }
-
- }
-}
--- /dev/null
+nohup /netopeer_tls_cfg/update_tls.sh &
+exec /usr/bin/supervisord -c "/etc/supervisord.conf"
--- /dev/null
+{
+ "mynetconf:netconflist": {
+ "netconf": [
+ {
+ "netconf-id": 3,
+ "netconf-param": 3
+ }
+ ]
+ }
+}
--- /dev/null
+module mynetconf {
+ yang-version 1.1;
+ namespace "urn:mynetconf:test";
+
+ prefix nft;
+
+ organization "mynetconf";
+ contact "my netconf address";
+ description "yang model for mynetconf";
+ revision "2019-03-01"{
+ description "initial version";
+ }
+
+ container netconflist{
+ list netconf{
+ key netconf-id;
+ leaf netconf-id{
+ type uint16;
+ }
+ leaf netconf-param {
+ type uint32;
+ }
+ }
+
+ }
+}
#!/bin/bash
-
+sleep 20
NETOPEER_CONFIG_PATH='/opt/dev/Netopeer2/server/configuration'
MOUNT_PATH='/netopeer_tls_cfg'
KEY_PATH='/usr/local/etc/keystored/keys'
# This function uploads test_data and model into netopeer2 server
upload_yang_data_model()
{
- sysrepoctl -i -g $MOUNT_PATH/building.yang
- $SUBSCRIBE_APP_PATH building > /dev/null &
- sysrepocfg --datastore=running --format=json building --import=$MOUNT_PATH/building.data
+ sysrepoctl -i -g $MOUNT_PATH/mynetconf.yang
+ $SUBSCRIBE_APP_PATH mynetconf > /dev/null &
+ sysrepocfg --datastore=running --format=json mynetconf --import=$MOUNT_PATH/mynetconf.data
}
# This function configures server/trusted certificates into Netopeer