diff --git a/cocsn.json b/cocsn.json deleted file mode 100644 index a757eaa2b3b319397ba4af85b0e0b02b1528a9f1..0000000000000000000000000000000000000000 --- a/cocsn.json +++ /dev/null @@ -1,3977 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "cocsn", - "description": "This YANG module represents the CoCSN API", - "version": "2020-08-17" - }, - "basePath": "/restconf", - "tags": [ - { - "name": "root", - "description": "root resources" - }, - { - "name": "operations", - "description": "operations resources" - }, - { - "name": "data", - "description": "data resources" - }, - { - "name": "get", - "description": "get resources" - }, - { - "name": "post", - "description": "post resources" - }, - { - "name": "patch", - "description": "patch resources" - }, - { - "name": "put", - "description": "put resources" - }, - { - "name": "delete", - "description": "delete resources" - } - ], - "schemes": [ - "http", - "https" - ], - "produces": [ - "application/yang-data+json" - ], - "consumes": [ - "application/yang-data+json" - ], - "paths": { - "/": { - "get": { - "tags": [ - "root", - "get" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "root_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "200": { - "description": "This YANG module represents the CoCSN API", - "schema": { - "$ref": "#/definitions/root" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/operations": { - "get": { - "tags": [ - "operations", - "get" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "operations_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "200": { - "description": "This YANG module represents the CoCSN API", - "schema": { - "$ref": "#/definitions/operations" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/yang-library-version": { - "get": { - "tags": [ - "yang-library-version", - "get" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "yang_library_version_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "200": { - "description": "This YANG module represents the CoCSN API", - "schema": { - "$ref": "#/definitions/yang-library-version" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "data_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "200": { - "description": "This YANG module represents the CoCSN API", - "schema": { - "$ref": "#/definitions/data" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "post": { - "tags": [ - "data", - "post" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "data_post", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data-post" - } - ], - "responses": { - "201": { - "description": "This YANG module represents the CoCSN API" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "data_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data-put-patch" - } - ], - "responses": { - "201": { - "description": "This YANG module represents the CoCSN API" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "This YANG module represents the CoCSN API", - "description": "This YANG module represents the CoCSN API", - "operationId": "data_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data-put-patch" - } - ], - "responses": { - "204": { - "description": "This YANG module represents the CoCSN API" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "post": { - "tags": [ - "data", - "post" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_post", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_interfaces-post" - } - ], - "responses": { - "201": { - "description": "container interfaces created" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_interfaces" - } - ], - "responses": { - "201": { - "description": "container interfaces created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_interfaces" - } - ], - "responses": { - "204": { - "description": "container interfaces updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface": { - }, - "/data/cocsn:interfaces/interface={interface-name}": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_interface_interface_name_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_interface_interface_name_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name" - }, - { - "$ref": "#/parameters/insert" - }, - { - "$ref": "#/parameters/point" - } - ], - "responses": { - "201": { - "description": "list interface created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_interface_interface_name_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name" - } - ], - "responses": { - "204": { - "description": "list interface updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_interfaces_interface_interface_name_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface={interface-name}/name": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Interface name. Example value: en0", - "description": "Interface name. Example value: en0", - "operationId": "data_cocsn_interfaces_interface_interface_name_name_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Interface name. Example value: en0", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_name" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface={interface-name}/addresses": { - }, - "/data/cocsn:interfaces/interface={interface-name}/addresses={addresses-id}": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Interface IP address. Example value: 10.10.10.1", - "description": "Interface IP address. Example value: 10.10.10.1", - "operationId": "data_cocsn_interfaces_interface_interface_name_addresses_addresses_id_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/addresses-id" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Interface IP address. Example value: 10.10.10.1", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_addresses_addresses-id" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Interface IP address. Example value: 10.10.10.1", - "description": "Interface IP address. Example value: 10.10.10.1", - "operationId": "data_cocsn_interfaces_interface_interface_name_addresses_addresses_id_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/addresses-id" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_addresses_addresses-id" - }, - { - "$ref": "#/parameters/insert" - }, - { - "$ref": "#/parameters/point" - } - ], - "responses": { - "201": { - "description": "leaf-list addresses created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Interface IP address. Example value: 10.10.10.1", - "description": "Interface IP address. Example value: 10.10.10.1", - "operationId": "data_cocsn_interfaces_interface_interface_name_addresses_addresses_id_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/addresses-id" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_addresses_addresses-id" - } - ], - "responses": { - "204": { - "description": "leaf-list addresses updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Interface IP address. Example value: 10.10.10.1", - "description": "Interface IP address. Example value: 10.10.10.1", - "operationId": "data_cocsn_interfaces_interface_interface_name_addresses_addresses_id_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/addresses-id" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface={interface-name}/phys-address": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present.", - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present.", - "operationId": "data_cocsn_interfaces_interface_interface_name_phys_address_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present.", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_phys-address" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface={interface-name}/enabled": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Enable or disable the interface. Example value: true", - "description": "Enable or disable the interface. Example value: true", - "operationId": "data_cocsn_interfaces_interface_interface_name_enabled_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Enable or disable the interface. Example value: true", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_enabled" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Enable or disable the interface. Example value: true", - "description": "Enable or disable the interface. Example value: true", - "operationId": "data_cocsn_interfaces_interface_interface_name_enabled_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_enabled" - } - ], - "responses": { - "201": { - "description": "leaf enabled created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Enable or disable the interface. Example value: true", - "description": "Enable or disable the interface. Example value: true", - "operationId": "data_cocsn_interfaces_interface_interface_name_enabled_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_enabled" - } - ], - "responses": { - "204": { - "description": "leaf enabled updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Enable or disable the interface. Example value: true", - "description": "Enable or disable the interface. Example value: true", - "operationId": "data_cocsn_interfaces_interface_interface_name_enabled_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:interfaces/interface={interface-name}/oper-status": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Describes whether the interface is physically up or down", - "description": "Describes whether the interface is physically up or down", - "operationId": "data_cocsn_interfaces_interface_interface_name_oper_status_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Describes whether the interface is physically up or down", - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_oper-status" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Describes whether the interface is physically up or down", - "description": "Describes whether the interface is physically up or down", - "operationId": "data_cocsn_interfaces_interface_interface_name_oper_status_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_oper-status" - } - ], - "responses": { - "201": { - "description": "leaf oper-status created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Describes whether the interface is physically up or down", - "description": "Describes whether the interface is physically up or down", - "operationId": "data_cocsn_interfaces_interface_interface_name_oper_status_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - }, - { - "$ref": "#/parameters/data_cocsn_interfaces_interface_interface-name_oper-status" - } - ], - "responses": { - "204": { - "description": "leaf oper-status updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Describes whether the interface is physically up or down", - "description": "Describes whether the interface is physically up or down", - "operationId": "data_cocsn_interfaces_interface_interface_name_oper_status_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/interface-name" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/data_cocsn_routes" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "post": { - "tags": [ - "data", - "post" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_post", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_routes-post" - } - ], - "responses": { - "201": { - "description": "container routes created" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_routes" - } - ], - "responses": { - "201": { - "description": "container routes created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/data_cocsn_routes" - } - ], - "responses": { - "204": { - "description": "container routes updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route": { - }, - "/data/cocsn:routes/route={route-destination}": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_route_route_destination_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_route_route_destination_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination" - }, - { - "$ref": "#/parameters/insert" - }, - { - "$ref": "#/parameters/point" - } - ], - "responses": { - "201": { - "description": "list route created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_route_route_destination_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination" - } - ], - "responses": { - "204": { - "description": "list route updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "", - "description": "", - "operationId": "data_cocsn_routes_route_route_destination_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route={route-destination}/destination": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Route destination. IP network", - "description": "Route destination. IP network", - "operationId": "data_cocsn_routes_route_route_destination_destination_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Route destination. IP network", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_destination" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Route destination. IP network", - "description": "Route destination. IP network", - "operationId": "data_cocsn_routes_route_route_destination_destination_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_destination" - } - ], - "responses": { - "201": { - "description": "leaf destination created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Route destination. IP network", - "description": "Route destination. IP network", - "operationId": "data_cocsn_routes_route_route_destination_destination_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_destination" - } - ], - "responses": { - "204": { - "description": "leaf destination updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Route destination. IP network", - "description": "Route destination. IP network", - "operationId": "data_cocsn_routes_route_route_destination_destination_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route={route-destination}/gateway": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Route gateway. IP address or host name", - "description": "Route gateway. IP address or host name", - "operationId": "data_cocsn_routes_route_route_destination_gateway_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Route gateway. IP address or host name", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_gateway" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Route gateway. IP address or host name", - "description": "Route gateway. IP address or host name", - "operationId": "data_cocsn_routes_route_route_destination_gateway_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_gateway" - } - ], - "responses": { - "201": { - "description": "leaf gateway created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Route gateway. IP address or host name", - "description": "Route gateway. IP address or host name", - "operationId": "data_cocsn_routes_route_route_destination_gateway_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_gateway" - } - ], - "responses": { - "204": { - "description": "leaf gateway updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Route gateway. IP address or host name", - "description": "Route gateway. IP address or host name", - "operationId": "data_cocsn_routes_route_route_destination_gateway_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route={route-destination}/flags": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Flags of the route", - "description": "Flags of the route", - "operationId": "data_cocsn_routes_route_route_destination_flags_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Flags of the route", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_flags" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Flags of the route", - "description": "Flags of the route", - "operationId": "data_cocsn_routes_route_route_destination_flags_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_flags" - } - ], - "responses": { - "201": { - "description": "leaf flags created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Flags of the route", - "description": "Flags of the route", - "operationId": "data_cocsn_routes_route_route_destination_flags_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_flags" - } - ], - "responses": { - "204": { - "description": "leaf flags updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Flags of the route", - "description": "Flags of the route", - "operationId": "data_cocsn_routes_route_route_destination_flags_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route={route-destination}/interface": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Interface used for the route", - "description": "Interface used for the route", - "operationId": "data_cocsn_routes_route_route_destination_interface_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Interface used for the route", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_interface" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Interface used for the route", - "description": "Interface used for the route", - "operationId": "data_cocsn_routes_route_route_destination_interface_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_interface" - } - ], - "responses": { - "201": { - "description": "leaf interface created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Interface used for the route", - "description": "Interface used for the route", - "operationId": "data_cocsn_routes_route_route_destination_interface_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_interface" - } - ], - "responses": { - "204": { - "description": "leaf interface updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Interface used for the route", - "description": "Interface used for the route", - "operationId": "data_cocsn_routes_route_route_destination_interface_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/data/cocsn:routes/route={route-destination}/expire": { - "get": { - "tags": [ - "data", - "get" - ], - "summary": "Expiration timer of the route", - "description": "Expiration timer of the route", - "operationId": "data_cocsn_routes_route_route_destination_expire_get", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/content" - }, - { - "$ref": "#/parameters/depth" - }, - { - "$ref": "#/parameters/fields" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/with-defaults" - } - ], - "responses": { - "200": { - "description": "Expiration timer of the route", - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_expire" - } - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "put": { - "tags": [ - "data", - "put" - ], - "summary": "Expiration timer of the route", - "description": "Expiration timer of the route", - "operationId": "data_cocsn_routes_route_route_destination_expire_put", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_expire" - } - ], - "responses": { - "201": { - "description": "leaf expire created or replaced" - }, - "204": { - "$ref": "#/responses/204" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "patch": { - "tags": [ - "data", - "patch" - ], - "summary": "Expiration timer of the route", - "description": "Expiration timer of the route", - "operationId": "data_cocsn_routes_route_route_destination_expire_patch", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - }, - { - "$ref": "#/parameters/data_cocsn_routes_route_route-destination_expire" - } - ], - "responses": { - "204": { - "description": "leaf expire updated" - }, - "400": { - "$ref": "#/responses/400" - }, - "401": { - "$ref": "#/responses/401" - }, - "404": { - "$ref": "#/responses/404" - }, - "405": { - "$ref": "#/responses/405" - }, - "409": { - "$ref": "#/responses/409" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - }, - "delete": { - "tags": [ - "data", - "delete" - ], - "summary": "Expiration timer of the route", - "description": "Expiration timer of the route", - "operationId": "data_cocsn_routes_route_route_destination_expire_delete", - "produces": [ - "application/yang-data+json" - ], - "parameters": [ - { - "$ref": "#/parameters/route-destination" - } - ], - "responses": { - "204": { - "$ref": "#/responses/204" - } - }, - "security": [ - { - "basicAuth": [] - } - ] - } - } - }, - "parameters": { - "content": { - "name": "content", - "in": "query", - "description": "controlling descendant nodes in response", - "required": false, - "type": "string", - "format": "enumeration", - "default": "config", - "enum": [ - "config", - "nonconfig", - "all" - ] - }, - "depth": { - "name": "depth", - "in": "query", - "description": "limit the depth of nodes in response", - "required": false, - "type": "integer", - "format": "uint16" - }, - "fields": { - "name": "fields", - "in": "query", - "description": "optionally identify specific data nodes in response", - "required": false, - "type": "string", - "format": "string" - }, - "filter": { - "name": "filter", - "in": "query", - "description": "xpath expression to filter data nodes in response", - "required": false, - "type": "string", - "format": "string" - }, - "with-defaults": { - "name": "with-defaults", - "in": "query", - "description": "controlling default values in response", - "required": false, - "type": "string", - "format": "enumeration", - "default": "report-all", - "enum": [ - "report-all", - "trim", - "explicit", - "report-all-tagged" - ] - }, - "insert": { - "name": "insert", - "in": "query", - "description": "controlling the order when adding new list elements", - "required": false, - "type": "string", - "format": "enumeration", - "default": "first", - "enum": [ - "first", - "last", - "before", - "after" - ] - }, - "point": { - "name": "point", - "in": "query", - "description": "used to specify the insertion point", - "required": false, - "type": "string", - "format": "string" - }, - "route-destination": { - "name": "route-destination", - "in": "path", - "description": "Route destination. IP network", - "required": true, - "type": "string", - "format": "string" - }, - "interface-name": { - "name": "interface-name", - "in": "path", - "description": "Interface name. Example value: en0", - "required": true, - "type": "string", - "format": "string" - }, - "data_cocsn_routes_route_route-destination_interface": { - "name": "interface", - "in": "body", - "description": "Interface used for the route", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_interface" - } - }, - "data_cocsn_routes_route_route-destination_gateway": { - "name": "gateway", - "in": "body", - "description": "Route gateway. IP address or host name", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_gateway" - } - }, - "data_cocsn_routes_route_route-destination_flags": { - "name": "flags", - "in": "body", - "description": "Flags of the route", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_flags" - } - }, - "data_cocsn_routes_route_route-destination_expire": { - "name": "expire", - "in": "body", - "description": "Expiration timer of the route", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_expire" - } - }, - "data_cocsn_routes_route_route-destination_destination": { - "name": "destination", - "in": "body", - "description": "Route destination. IP network", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination_destination" - } - }, - "data_cocsn_routes_route_route-destination": { - "name": "route", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes_route_route-destination" - } - }, - "data_cocsn_routes-post": { - "name": "routes", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes-post" - } - }, - "data_cocsn_routes": { - "name": "routes", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_routes" - } - }, - "data_cocsn_interfaces_interface_interface-name_oper-status": { - "name": "oper-status", - "in": "body", - "description": "Describes whether the interface is physically up or down", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_oper-status" - } - }, - "data_cocsn_interfaces_interface_interface-name_enabled": { - "name": "enabled", - "in": "body", - "description": "Enable or disable the interface. Example value: true", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_enabled" - } - }, - "data_cocsn_interfaces_interface_interface-name_addresses_addresses-id": { - "name": "addresses", - "in": "body", - "description": "Interface IP address. Example value: 10.10.10.1", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name_addresses_addresses-id" - } - }, - "data_cocsn_interfaces_interface_interface-name": { - "name": "interface", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces_interface_interface-name" - } - }, - "data_cocsn_interfaces-post": { - "name": "interfaces", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces-post" - } - }, - "data_cocsn_interfaces": { - "name": "interfaces", - "in": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/data_cocsn_interfaces" - } - }, - "data-put-patch": { - "name": "data", - "in": "body", - "description": "This YANG module represents the CoCSN API", - "required": true, - "schema": { - "$ref": "#/definitions/data-put-patch" - } - }, - "data-post": { - "name": "data", - "in": "body", - "description": "This YANG module represents the CoCSN API", - "required": true, - "schema": { - "$ref": "#/definitions/data-post" - } - }, - "addresses-id": { - "name": "addresses-id", - "in": "path", - "description": "Interface IP address. Example value: 10.10.10.1", - "required": true, - "type": "string", - "format": "string" - } - }, - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Not Found" - }, - "405": { - "description": "Method Not Allowed" - }, - "409": { - "description": "Conflict" - } - }, - "securityDefinitions": { - "basicAuth": { - "type": "basic" - } - }, - "definitions": { - "yang-library-version": { - "type": "object", - "properties": { - "ietf-restconf:yang-library-version": { - "type": "object", - "description": "This leaf identifies the revision date of the 'ietf-yang-library' YANG module that is implemented by this server. See RESTCONF RFC 8040 for further information.", - "x-yang": { - "type": "leaf" - }, - "properties": { - } - } - } - }, - "root": { - "type": "object", - "properties": { - "ietf-restconf:restconf": { - "type": "object", - "x-yang": { - "type": "root" - }, - "description": "This is the RESTCONF root resource for the RESTCONF datastore and operation resources. See RESTCONF RFC 8040 for further information.", - "properties": { - "data": { - "type": "object", - "properties": { - } - }, - "operations": { - "type": "object", - "properties": { - } - }, - "yang-library-version": { - "type": "string" - } - } - } - } - }, - "operations": { - "type": "object", - "properties": { - "ietf-restconf:operations": { - "type": "object", - "x-yang": { - "type": "operations" - }, - "description": "This resource is a container that provides access to the data-model-specific RPC operations supported by the server. See RESTCONF RFC 8040 for further information.", - "properties": { - - } - } - } - }, - "data_cocsn_routes_route_route-destination_interface": { - "type": "object", - "properties": { - "cocsn:interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_routes_route_route-destination_gateway": { - "type": "object", - "properties": { - "cocsn:gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_routes_route_route-destination_flags": { - "type": "object", - "properties": { - "cocsn:flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_routes_route_route-destination_expire": { - "type": "object", - "properties": { - "cocsn:expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_routes_route_route-destination_destination": { - "type": "object", - "properties": { - "cocsn:destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_routes_route_route-destination": { - "type": "object", - "properties": { - "cocsn:route": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "data_cocsn_routes-post": { - "type": "object", - "properties": { - "cocsn:route": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "data_cocsn_routes": { - "type": "object", - "properties": { - "cocsn:routes": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "route": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - } - } - }, - "data_cocsn_interfaces_interface_interface-name_phys-address": { - "type": "object", - "properties": { - "cocsn:phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_interfaces_interface_interface-name_oper-status": { - "type": "object", - "properties": { - "cocsn:oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - } - } - }, - "data_cocsn_interfaces_interface_interface-name_name": { - "type": "object", - "properties": { - "cocsn:name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - }, - "data_cocsn_interfaces_interface_interface-name_enabled": { - "type": "object", - "properties": { - "cocsn:enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - } - } - }, - "data_cocsn_interfaces_interface_interface-name_addresses_addresses-id": { - "type": "object", - "properties": { - "cocsn:addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - } - } - }, - "data_cocsn_interfaces_interface_interface-name": { - "type": "object", - "properties": { - "cocsn:interface": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - }, - "enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - }, - "name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - }, - "phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "data_cocsn_interfaces-post": { - "type": "object", - "properties": { - "cocsn:interface": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - }, - "enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - }, - "name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - }, - "phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "data_cocsn_interfaces": { - "type": "object", - "properties": { - "cocsn:interfaces": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "interface": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - }, - "enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - }, - "name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - }, - "phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - } - } - }, - "data-put-patch": { - "type": "object", - "properties": { - "ietf-restconf:data": { - "description": "This YANG module represents the CoCSN API", - "type": "object", - "x-yang": { - "type": "datastore" - }, - "properties": { - "cocsn:interfaces": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "interface": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - }, - "enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - }, - "name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - }, - "phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "cocsn:routes": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "route": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - } - } - } - } - }, - "data-post": { - "type": "object", - "properties": { - "cocsn:interfaces": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "interface": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "x-yang": { - "type": "leaf-list" - }, - "items": { - "description": "Interface IP address. Example value: 10.10.10.1 (leaf-list)", - "type": "string", - "format": "string" - } - }, - "enabled": { - "description": "Enable or disable the interface. Example value: true (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "boolean" - }, - "name": { - "description": "Interface name. Example value: en0 (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "oper-status": { - "description": "Describes whether the interface is physically up or down (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "enumeration", - "default": "up", - "enum": [ - "up", - "down" - ] - }, - "phys-address": { - "description": "The interface's address at its protocol sub-layer. For\nexample, for an 802.x interface, this object normally\ncontains a Media Access Control (MAC) address. The\ninterface's media-specific modules must define the bit\nand byte ordering and the format of the value of this\nobject. For interfaces that do not have such an address\n(e.g., a serial line), this node is not present. (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - }, - "cocsn:routes": { - "description": "(non-presence)", - "type": "object", - "x-yang": { - "type": "container", - "is_presence": "false" - }, - "properties": { - "route": { - "type": "array", - "description": "(list)", - "x-yang": { - "type": "list" - }, - "items": { - "type": "object", - "properties": { - "destination": { - "description": "Route destination. IP network (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "expire": { - "description": "Expiration timer of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "flags": { - "description": "Flags of the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "gateway": { - "description": "Route gateway. IP address or host name (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - }, - "interface": { - "description": "Interface used for the route (leaf)", - "x-yang": { - "type": "leaf" - }, - "type": "string", - "format": "string" - } - } - } - } - } - } - } - }, - "data": { - "type": "object", - "properties": { - "ietf-restconf:data": { - "type": "object", - "description": "This resource represents the combined configuration and state data resources that can be accessed by a client and cannot be created or deleted by the client. See RESTCONF RFC 8040 for further information.", - "x-yang": { - "type": "datastore" - }, - "properties": { - } - } - } - } - } -} diff --git a/go.mod b/go.mod deleted file mode 100644 index 0cf3294b74713555f042328560f8f2c30ce4742e..0000000000000000000000000000000000000000 --- a/go.mod +++ /dev/null @@ -1,15 +0,0 @@ -module code.fbi.h-da.de/cocsn/cocsn-api - -go 1.14 - -require ( - github.com/go-openapi/errors v0.19.6 - github.com/go-openapi/loads v0.19.5 - github.com/go-openapi/runtime v0.19.21 - github.com/go-openapi/spec v0.19.9 - github.com/go-openapi/strfmt v0.19.5 - github.com/go-openapi/swag v0.19.9 - github.com/go-openapi/validate v0.19.10 - github.com/jessevdk/go-flags v1.4.0 - golang.org/x/net v0.0.0-20200822124328-c89045814202 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 13329e87f4e58389eddbbbe7204ba37624e44859..0000000000000000000000000000000000000000 --- a/go.sum +++ /dev/null @@ -1,238 +0,0 @@ -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 h1:4daAzAu0S6Vi7/lbWECcX0j45yZReDZ56BQsrVBOEEY= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= -github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.19.10 h1:5BHISBAXOc/aJK25irLZnx2D3s6WyYaY9D4gmuz9fdE= -github.com/go-openapi/analysis v0.19.10/go.mod h1:qmhS3VNFxBlquFJ0RGoDtylO9y4pgTAUNE9AEEMdlJQ= -github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.3/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.6 h1:xZMThgv5SQ7SMbWtKFkCf9bBdvR2iEyw9k3zGZONuys= -github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.4 h1:3Vw+rh13uq2JFNxgnMTGE1rnoieU9FmyE1gvnyylsYg= -github.com/go-openapi/jsonreference v0.19.4/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= -github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= -github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= -github.com/go-openapi/loads v0.19.5 h1:jZVYWawIQiA1NBnHla28ktg6hrcfTHsCE+3QLVRBIls= -github.com/go-openapi/loads v0.19.5/go.mod h1:dswLCAdonkRufe/gSUC3gN8nTSaB9uaS2es0x5/IbjY= -github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= -github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= -github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/runtime v0.19.15/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo= -github.com/go-openapi/runtime v0.19.21 h1:81PiYus9l6fwwS4EwhJD+tQb3EPZBeWfgdAVTfFD25Q= -github.com/go-openapi/runtime v0.19.21/go.mod h1:Lm9YGCeecBnUUkFTxPC4s1+lwrkJ0pthx8YvyjCfkgk= -github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.6/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.9 h1:9z9cbFuZJ7AcvOHKIY+f6Aevb4vObNDkTEyoMfO7rAc= -github.com/go-openapi/spec v0.19.9/go.mod h1:vqK/dIdLGCosfvYsQV3WfC7N3TiZSnGY2RZKoFK7X28= -github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= -github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.4/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.19.5 h1:0utjKrw+BAh8s57XE9Xz8DUBsVvPmRUB6styvl9wWIM= -github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= -github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= -github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= -github.com/go-openapi/validate v0.19.10 h1:tG3SZ5DC5KF4cyt7nqLVcQXGj5A7mpaYkAcNPlDK+Yk= -github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= -github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY= -github.com/gobuffalo/depgen v0.1.0/go.mod h1:+ifsuy7fhi15RWncXQQKjWS9JPkdah5sZvtHc2RXGlg= -github.com/gobuffalo/envy v1.6.15/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI= -github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI= -github.com/gobuffalo/flect v0.1.0/go.mod h1:d2ehjJqGOH/Kjqcoz+F7jHTBbmDb38yXA598Hb50EGs= -github.com/gobuffalo/flect v0.1.1/go.mod h1:8JCgGVbRjJhVgD6399mQr4fx5rRfGKVzFjbj6RE/9UI= -github.com/gobuffalo/flect v0.1.3/go.mod h1:8JCgGVbRjJhVgD6399mQr4fx5rRfGKVzFjbj6RE/9UI= -github.com/gobuffalo/genny v0.0.0-20190329151137-27723ad26ef9/go.mod h1:rWs4Z12d1Zbf19rlsn0nurr75KqhYp52EAGGxTbBhNk= -github.com/gobuffalo/genny v0.0.0-20190403191548-3ca520ef0d9e/go.mod h1:80lIj3kVJWwOrXWWMRzzdhW3DsrdjILVil/SFKBzF28= -github.com/gobuffalo/genny v0.1.0/go.mod h1:XidbUqzak3lHdS//TPu2OgiFB+51Ur5f7CSnXZ/JDvo= -github.com/gobuffalo/genny v0.1.1/go.mod h1:5TExbEyY48pfunL4QSXxlDOmdsD44RRq4mVZ0Ex28Xk= -github.com/gobuffalo/gitgen v0.0.0-20190315122116-cc086187d211/go.mod h1:vEHJk/E9DmhejeLeNt7UVvlSGv3ziL+djtTr3yyzcOw= -github.com/gobuffalo/gogen v0.0.0-20190315121717-8f38393713f5/go.mod h1:V9QVDIxsgKNZs6L2IYiGR8datgMhB577vzTDqypH360= -github.com/gobuffalo/gogen v0.1.0/go.mod h1:8NTelM5qd8RZ15VjQTFkAW6qOMx5wBbW4dSCS3BY8gg= -github.com/gobuffalo/gogen v0.1.1/go.mod h1:y8iBtmHmGc4qa3urIyo1shvOD8JftTtfcKi+71xfDNE= -github.com/gobuffalo/logger v0.0.0-20190315122211-86e12af44bc2/go.mod h1:QdxcLw541hSGtBnhUc4gaNIXRjiDppFGaDqzbrBd3v8= -github.com/gobuffalo/mapi v1.0.1/go.mod h1:4VAGh89y6rVOvm5A8fKFxYG+wIW6LO1FMTG9hnKStFc= -github.com/gobuffalo/mapi v1.0.2/go.mod h1:4VAGh89y6rVOvm5A8fKFxYG+wIW6LO1FMTG9hnKStFc= -github.com/gobuffalo/packd v0.0.0-20190315124812-a385830c7fc0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWeG2RIxq4= -github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWeG2RIxq4= -github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ= -github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0= -github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= -github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= -github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= -github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.2 h1:mRS76wmkOn3KkKAyXDu42V+6ebnXWIztFSYGN7GeoRg= -github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= -github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= -go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.3.4 h1:zs/dKNwX0gYUtzwrN9lLiR15hCO0nDwQj5xXx+vjCdE= -go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/yang/cocsn.yang b/yang/cocsn.yang deleted file mode 100644 index f69ef7fd0ccaa023242e0c5bdc7733d4cf587b02..0000000000000000000000000000000000000000 --- a/yang/cocsn.yang +++ /dev/null @@ -1,110 +0,0 @@ -module cocsn { - yang-version 1.1; - namespace "urn:danet:params:xml:ns:yang:cocsn"; - prefix coc; - - import ietf-yang-types { - prefix yang; - } - - import ietf-restconf { - prefix rc; - } - - organization - "Darmstadt University of Applied Sciences"; - - description - "This YANG module represents the CoCSN API"; - - revision "2020-08-17" { - description - "Initial Revision"; - } - - container interfaces { - list interface { - key "name"; - leaf name { - config false; - type string; - mandatory "true"; - description - "Interface name. Example value: en0"; - } - leaf-list addresses { - config true; - type yang:dotted-quad; - description - "Interface IP address. Example value: 10.10.10.1"; - } - leaf phys-address { - config false; - type yang:phys-address; - description - "The interface's address at its protocol sub-layer. For - example, for an 802.x interface, this object normally - contains a Media Access Control (MAC) address. The - interface's media-specific modules must define the bit - and byte ordering and the format of the value of this - object. For interfaces that do not have such an address - (e.g., a serial line), this node is not present."; - reference - "RFC 2863: The Interfaces Group MIB - ifPhysAddress"; - } - leaf enabled { - config true; - type boolean; - default "false"; - description - "Enable or disable the interface. Example value: true"; - } - leaf oper-status { - type enumeration { - enum up; - enum down; - } - mandatory "true"; - description - "Describes whether the interface is physically up or down"; - } - } - } - - container routes { - list route { - config true; - key "destination"; - leaf destination { - type string; - mandatory "true"; - description - "Route destination. IP network"; - } - leaf gateway { - type string; - mandatory "true"; - description - "Route gateway. IP address or host name"; - } - leaf flags { - type string; - mandatory "true"; - description - "Flags of the route"; - } - leaf interface { - type string; - mandatory "true"; - description - "Interface used for the route"; - } - leaf expire { - type string; - mandatory "false"; - description - "Expiration timer of the route"; - } - } - } -} \ No newline at end of file diff --git a/yang/ietf-restconf.yang b/yang/ietf-restconf.yang deleted file mode 100644 index b47455b81644ddf810e7e3241cf69cb4d2f975b3..0000000000000000000000000000000000000000 --- a/yang/ietf-restconf.yang +++ /dev/null @@ -1,278 +0,0 @@ -module ietf-restconf { - yang-version 1.1; - namespace "urn:ietf:params:xml:ns:yang:ietf-restconf"; - prefix "rc"; - - organization - "IETF NETCONF (Network Configuration) Working Group"; - - contact - "WG Web: <https://datatracker.ietf.org/wg/netconf/> - WG List: <mailto:netconf@ietf.org> - - Author: Andy Bierman - <mailto:andy@yumaworks.com> - - Author: Martin Bjorklund - <mailto:mbj@tail-f.com> - - Author: Kent Watsen - <mailto:kwatsen@juniper.net>"; - - description - "This module contains conceptual YANG specifications - for basic RESTCONF media type definitions used in - RESTCONF protocol messages. - - Note that the YANG definitions within this module do not - represent configuration data of any kind. - The 'restconf-media-type' YANG extension statement - provides a normative syntax for XML and JSON - message-encoding purposes. - - Copyright (c) 2017 IETF Trust and the persons identified as - authors of the code. All rights reserved. - - Redistribution and use in source and binary forms, with or - without modification, is permitted pursuant to, and subject - to the license terms contained in, the Simplified BSD License - set forth in Section 4.c of the IETF Trust's Legal Provisions - Relating to IETF Documents - (http://trustee.ietf.org/license-info). - - This version of this YANG module is part of RFC 8040; see - the RFC itself for full legal notices."; - - revision 2017-01-26 { - description - "Initial revision."; - reference - "RFC 8040: RESTCONF Protocol."; - } - - extension yang-data { - argument name { - yin-element true; - } - description - "This extension is used to specify a YANG data template that - represents conceptual data defined in YANG. It is - intended to describe hierarchical data independent of - protocol context or specific message-encoding format. - Data definition statements within a yang-data extension - specify the generic syntax for the specific YANG data - template, whose name is the argument of the 'yang-data' - extension statement. - - Note that this extension does not define a media type. - A specification using this extension MUST specify the - message-encoding rules, including the content media type. - - The mandatory 'name' parameter value identifies the YANG - data template that is being defined. It contains the - template name. - - This extension is ignored unless it appears as a top-level - statement. It MUST contain data definition statements - that result in exactly one container data node definition. - An instance of a YANG data template can thus be translated - into an XML instance document, whose top-level element - corresponds to the top-level container. - The module name and namespace values for the YANG module using - the extension statement are assigned to instance document data - conforming to the data definition statements within - this extension. - - The substatements of this extension MUST follow the - 'data-def-stmt' rule in the YANG ABNF. - - The XPath document root is the extension statement itself, - such that the child nodes of the document root are - represented by the data-def-stmt substatements within - this extension. This conceptual document is the context - for the following YANG statements: - - - must-stmt - - when-stmt - - path-stmt - - min-elements-stmt - - max-elements-stmt - - mandatory-stmt - - unique-stmt - - ordered-by - - instance-identifier data type - - The following data-def-stmt substatements are constrained - when used within a 'yang-data' extension statement. - - - The list-stmt is not required to have a key-stmt defined. - - The if-feature-stmt is ignored if present. - - The config-stmt is ignored if present. - - The available identity values for any 'identityref' - leaf or leaf-list nodes are limited to the module - containing this extension statement and the modules - imported into that module. - "; - } - - rc:yang-data yang-errors { - uses errors; - } - - rc:yang-data yang-api { - uses restconf; - } - - grouping errors { - description - "A grouping that contains a YANG container - representing the syntax and semantics of a - YANG Patch error report within a response message."; - - container errors { - description - "Represents an error report returned by the server if - a request results in an error."; - - list error { - description - "An entry containing information about one - specific error that occurred while processing - a RESTCONF request."; - reference - "RFC 6241, Section 4.3."; - - leaf error-type { - type enumeration { - enum transport { - description - "The transport layer."; - } - enum rpc { - description - "The rpc or notification layer."; - } - enum protocol { - description - "The protocol operation layer."; - } - enum application { - description - "The server application layer."; - } - } - mandatory true; - description - "The protocol layer where the error occurred."; - } - - leaf error-tag { - type string; - mandatory true; - description - "The enumerated error-tag."; - } - - leaf error-app-tag { - type string; - description - "The application-specific error-tag."; - } - - leaf error-path { - type instance-identifier; - description - "The YANG instance identifier associated - with the error node."; - } - - leaf error-message { - type string; - description - "A message describing the error."; - } - - anydata error-info { - description - "This anydata value MUST represent a container with - zero or more data nodes representing additional - error information."; - } - } - } - } - - grouping restconf { - description - "Conceptual grouping representing the RESTCONF - root resource."; - - container restconf { - description - "Conceptual container representing the RESTCONF - root resource."; - - container data { - description - "Container representing the datastore resource. - Represents the conceptual root of all state data - and configuration data supported by the server. - The child nodes of this container can be any data - resources that are defined as top-level data nodes - from the YANG modules advertised by the server in - the 'ietf-yang-library' module."; - } - - container operations { - description - "Container for all operation resources. - - Each resource is represented as an empty leaf with the - name of the RPC operation from the YANG 'rpc' statement. - - For example, the 'system-restart' RPC operation defined - in the 'ietf-system' module would be represented as - an empty leaf in the 'ietf-system' namespace. This is - a conceptual leaf and will not actually be found in - the module: - - module ietf-system { - leaf system-reset { - type empty; - } - } - - To invoke the 'system-restart' RPC operation: - - POST /restconf/operations/ietf-system:system-restart - - To discover the RPC operations supported by the server: - - GET /restconf/operations - - In XML, the YANG module namespace identifies the module: - - <system-restart - xmlns='urn:ietf:params:xml:ns:yang:ietf-system'/> - - In JSON, the YANG module name identifies the module: - - { 'ietf-system:system-restart' : [null] } - "; - } - leaf yang-library-version { - type string { - pattern '\d{4}-\d{2}-\d{2}'; - } - config false; - mandatory true; - description - "Identifies the revision date of the 'ietf-yang-library' - module that is implemented by this RESTCONF server. - Indicates the year, month, and day in YYYY-MM-DD - numeric format."; - } - } - } - -} diff --git a/yang/ietf-yang-types.yang b/yang/ietf-yang-types.yang deleted file mode 100644 index ee58fa3ab0042120d5607b8713d21fa0ba845895..0000000000000000000000000000000000000000 --- a/yang/ietf-yang-types.yang +++ /dev/null @@ -1,474 +0,0 @@ -module ietf-yang-types { - - namespace "urn:ietf:params:xml:ns:yang:ietf-yang-types"; - prefix "yang"; - - organization - "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; - - contact - "WG Web: <http://tools.ietf.org/wg/netmod/> - WG List: <mailto:netmod@ietf.org> - - WG Chair: David Kessens - <mailto:david.kessens@nsn.com> - - WG Chair: Juergen Schoenwaelder - <mailto:j.schoenwaelder@jacobs-university.de> - - Editor: Juergen Schoenwaelder - <mailto:j.schoenwaelder@jacobs-university.de>"; - - description - "This module contains a collection of generally useful derived - YANG data types. - - Copyright (c) 2013 IETF Trust and the persons identified as - authors of the code. All rights reserved. - - Redistribution and use in source and binary forms, with or - without modification, is permitted pursuant to, and subject - to the license terms contained in, the Simplified BSD License - set forth in Section 4.c of the IETF Trust's Legal Provisions - Relating to IETF Documents - (http://trustee.ietf.org/license-info). - - This version of this YANG module is part of RFC 6991; see - the RFC itself for full legal notices."; - - revision 2013-07-15 { - description - "This revision adds the following new data types: - - yang-identifier - - hex-string - - uuid - - dotted-quad"; - reference - "RFC 6991: Common YANG Data Types"; - } - - revision 2010-09-24 { - description - "Initial revision."; - reference - "RFC 6021: Common YANG Data Types"; - } - - /*** collection of counter and gauge types ***/ - - typedef counter32 { - type uint32; - description - "The counter32 type represents a non-negative integer - that monotonically increases until it reaches a - maximum value of 2^32-1 (4294967295 decimal), when it - wraps around and starts increasing again from zero. - - Counters have no defined 'initial' value, and thus, a - single value of a counter has (in general) no information - content. Discontinuities in the monotonically increasing - value normally occur at re-initialization of the - management system, and at other times as specified in the - description of a schema node using this type. If such - other times can occur, for example, the creation of - a schema node of type counter32 at times other than - re-initialization, then a corresponding schema node - should be defined, with an appropriate type, to indicate - the last discontinuity. - - The counter32 type should not be used for configuration - schema nodes. A default statement SHOULD NOT be used in - combination with the type counter32. - - In the value set and its semantics, this type is equivalent - to the Counter32 type of the SMIv2."; - reference - "RFC 2578: Structure of Management Information Version 2 - (SMIv2)"; - } - - typedef zero-based-counter32 { - type yang:counter32; - default "0"; - description - "The zero-based-counter32 type represents a counter32 - that has the defined 'initial' value zero. - - A schema node of this type will be set to zero (0) on creation - and will thereafter increase monotonically until it reaches - a maximum value of 2^32-1 (4294967295 decimal), when it - wraps around and starts increasing again from zero. - - Provided that an application discovers a new schema node - of this type within the minimum time to wrap, it can use the - 'initial' value as a delta. It is important for a management - station to be aware of this minimum time and the actual time - between polls, and to discard data if the actual time is too - long or there is no defined minimum time. - - In the value set and its semantics, this type is equivalent - to the ZeroBasedCounter32 textual convention of the SMIv2."; - reference - "RFC 4502: Remote Network Monitoring Management Information - Base Version 2"; - } - - typedef counter64 { - type uint64; - description - "The counter64 type represents a non-negative integer - that monotonically increases until it reaches a - maximum value of 2^64-1 (18446744073709551615 decimal), - when it wraps around and starts increasing again from zero. - - Counters have no defined 'initial' value, and thus, a - single value of a counter has (in general) no information - content. Discontinuities in the monotonically increasing - value normally occur at re-initialization of the - management system, and at other times as specified in the - description of a schema node using this type. If such - other times can occur, for example, the creation of - a schema node of type counter64 at times other than - re-initialization, then a corresponding schema node - should be defined, with an appropriate type, to indicate - the last discontinuity. - - The counter64 type should not be used for configuration - schema nodes. A default statement SHOULD NOT be used in - combination with the type counter64. - - In the value set and its semantics, this type is equivalent - to the Counter64 type of the SMIv2."; - reference - "RFC 2578: Structure of Management Information Version 2 - (SMIv2)"; - } - - typedef zero-based-counter64 { - type yang:counter64; - default "0"; - description - "The zero-based-counter64 type represents a counter64 that - has the defined 'initial' value zero. - - A schema node of this type will be set to zero (0) on creation - and will thereafter increase monotonically until it reaches - a maximum value of 2^64-1 (18446744073709551615 decimal), - when it wraps around and starts increasing again from zero. - - Provided that an application discovers a new schema node - of this type within the minimum time to wrap, it can use the - 'initial' value as a delta. It is important for a management - station to be aware of this minimum time and the actual time - between polls, and to discard data if the actual time is too - long or there is no defined minimum time. - - In the value set and its semantics, this type is equivalent - to the ZeroBasedCounter64 textual convention of the SMIv2."; - reference - "RFC 2856: Textual Conventions for Additional High Capacity - Data Types"; - } - - typedef gauge32 { - type uint32; - description - "The gauge32 type represents a non-negative integer, which - may increase or decrease, but shall never exceed a maximum - value, nor fall below a minimum value. The maximum value - cannot be greater than 2^32-1 (4294967295 decimal), and - the minimum value cannot be smaller than 0. The value of - a gauge32 has its maximum value whenever the information - being modeled is greater than or equal to its maximum - value, and has its minimum value whenever the information - being modeled is smaller than or equal to its minimum value. - If the information being modeled subsequently decreases - below (increases above) the maximum (minimum) value, the - gauge32 also decreases (increases). - - In the value set and its semantics, this type is equivalent - to the Gauge32 type of the SMIv2."; - reference - "RFC 2578: Structure of Management Information Version 2 - (SMIv2)"; - } - - typedef gauge64 { - type uint64; - description - "The gauge64 type represents a non-negative integer, which - may increase or decrease, but shall never exceed a maximum - value, nor fall below a minimum value. The maximum value - cannot be greater than 2^64-1 (18446744073709551615), and - the minimum value cannot be smaller than 0. The value of - a gauge64 has its maximum value whenever the information - being modeled is greater than or equal to its maximum - value, and has its minimum value whenever the information - being modeled is smaller than or equal to its minimum value. - If the information being modeled subsequently decreases - below (increases above) the maximum (minimum) value, the - gauge64 also decreases (increases). - - In the value set and its semantics, this type is equivalent - to the CounterBasedGauge64 SMIv2 textual convention defined - in RFC 2856"; - reference - "RFC 2856: Textual Conventions for Additional High Capacity - Data Types"; - } - - /*** collection of identifier-related types ***/ - - typedef object-identifier { - type string { - pattern '(([0-1](\.[1-3]?[0-9]))|(2\.(0|([1-9]\d*))))' - + '(\.(0|([1-9]\d*)))*'; - } - description - "The object-identifier type represents administratively - assigned names in a registration-hierarchical-name tree. - - Values of this type are denoted as a sequence of numerical - non-negative sub-identifier values. Each sub-identifier - value MUST NOT exceed 2^32-1 (4294967295). Sub-identifiers - are separated by single dots and without any intermediate - whitespace. - - The ASN.1 standard restricts the value space of the first - sub-identifier to 0, 1, or 2. Furthermore, the value space - of the second sub-identifier is restricted to the range - 0 to 39 if the first sub-identifier is 0 or 1. Finally, - the ASN.1 standard requires that an object identifier - has always at least two sub-identifiers. The pattern - captures these restrictions. - - Although the number of sub-identifiers is not limited, - module designers should realize that there may be - implementations that stick with the SMIv2 limit of 128 - sub-identifiers. - - This type is a superset of the SMIv2 OBJECT IDENTIFIER type - since it is not restricted to 128 sub-identifiers. Hence, - this type SHOULD NOT be used to represent the SMIv2 OBJECT - IDENTIFIER type; the object-identifier-128 type SHOULD be - used instead."; - reference - "ISO9834-1: Information technology -- Open Systems - Interconnection -- Procedures for the operation of OSI - Registration Authorities: General procedures and top - arcs of the ASN.1 Object Identifier tree"; - } - - typedef object-identifier-128 { - type object-identifier { - pattern '\d*(\.\d*){1,127}'; - } - description - "This type represents object-identifiers restricted to 128 - sub-identifiers. - - In the value set and its semantics, this type is equivalent - to the OBJECT IDENTIFIER type of the SMIv2."; - reference - "RFC 2578: Structure of Management Information Version 2 - (SMIv2)"; - } - - typedef yang-identifier { - type string { - length "1..max"; - pattern '[a-zA-Z_][a-zA-Z0-9\-_.]*'; - pattern '.|..|[^xX].*|.[^mM].*|..[^lL].*'; - } - description - "A YANG identifier string as defined by the 'identifier' - rule in Section 12 of RFC 6020. An identifier must - start with an alphabetic character or an underscore - followed by an arbitrary sequence of alphabetic or - numeric characters, underscores, hyphens, or dots. - - A YANG identifier MUST NOT start with any possible - combination of the lowercase or uppercase character - sequence 'xml'."; - reference - "RFC 6020: YANG - A Data Modeling Language for the Network - Configuration Protocol (NETCONF)"; - } - - /*** collection of types related to date and time***/ - - typedef date-and-time { - type string { - pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?' - + '(Z|[\+\-]\d{2}:\d{2})'; - } - description - "The date-and-time type is a profile of the ISO 8601 - standard for representation of dates and times using the - Gregorian calendar. The profile is defined by the - date-time production in Section 5.6 of RFC 3339. - - The date-and-time type is compatible with the dateTime XML - schema type with the following notable exceptions: - - (a) The date-and-time type does not allow negative years. - - (b) The date-and-time time-offset -00:00 indicates an unknown - time zone (see RFC 3339) while -00:00 and +00:00 and Z - all represent the same time zone in dateTime. - - (c) The canonical format (see below) of data-and-time values - differs from the canonical format used by the dateTime XML - schema type, which requires all times to be in UTC using - the time-offset 'Z'. - - This type is not equivalent to the DateAndTime textual - convention of the SMIv2 since RFC 3339 uses a different - separator between full-date and full-time and provides - higher resolution of time-secfrac. - - The canonical format for date-and-time values with a known time - zone uses a numeric time zone offset that is calculated using - the device's configured known offset to UTC time. A change of - the device's offset to UTC time will cause date-and-time values - to change accordingly. Such changes might happen periodically - in case a server follows automatically daylight saving time - (DST) time zone offset changes. The canonical format for - date-and-time values with an unknown time zone (usually - referring to the notion of local time) uses the time-offset - -00:00."; - reference - "RFC 3339: Date and Time on the Internet: Timestamps - RFC 2579: Textual Conventions for SMIv2 - XSD-TYPES: XML Schema Part 2: Datatypes Second Edition"; - } - - typedef timeticks { - type uint32; - description - "The timeticks type represents a non-negative integer that - represents the time, modulo 2^32 (4294967296 decimal), in - hundredths of a second between two epochs. When a schema - node is defined that uses this type, the description of - the schema node identifies both of the reference epochs. - - In the value set and its semantics, this type is equivalent - to the TimeTicks type of the SMIv2."; - reference - "RFC 2578: Structure of Management Information Version 2 - (SMIv2)"; - } - - typedef timestamp { - type yang:timeticks; - description - "The timestamp type represents the value of an associated - timeticks schema node at which a specific occurrence - happened. The specific occurrence must be defined in the - description of any schema node defined using this type. When - the specific occurrence occurred prior to the last time the - associated timeticks attribute was zero, then the timestamp - value is zero. Note that this requires all timestamp values - to be reset to zero when the value of the associated timeticks - attribute reaches 497+ days and wraps around to zero. - - The associated timeticks schema node must be specified - in the description of any schema node using this type. - - In the value set and its semantics, this type is equivalent - to the TimeStamp textual convention of the SMIv2."; - reference - "RFC 2579: Textual Conventions for SMIv2"; - } - - /*** collection of generic address types ***/ - - typedef phys-address { - type string { - pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?'; - } - - description - "Represents media- or physical-level addresses represented - as a sequence octets, each octet represented by two hexadecimal - numbers. Octets are separated by colons. The canonical - representation uses lowercase characters. - - In the value set and its semantics, this type is equivalent - to the PhysAddress textual convention of the SMIv2."; - reference - "RFC 2579: Textual Conventions for SMIv2"; - } - - typedef mac-address { - type string { - pattern '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}'; - } - description - "The mac-address type represents an IEEE 802 MAC address. - The canonical representation uses lowercase characters. - - In the value set and its semantics, this type is equivalent - to the MacAddress textual convention of the SMIv2."; - reference - "IEEE 802: IEEE Standard for Local and Metropolitan Area - Networks: Overview and Architecture - RFC 2579: Textual Conventions for SMIv2"; - } - - /*** collection of XML-specific types ***/ - - typedef xpath1.0 { - type string; - description - "This type represents an XPATH 1.0 expression. - - When a schema node is defined that uses this type, the - description of the schema node MUST specify the XPath - context in which the XPath expression is evaluated."; - reference - "XPATH: XML Path Language (XPath) Version 1.0"; - } - - /*** collection of string types ***/ - - typedef hex-string { - type string { - pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?'; - } - description - "A hexadecimal string with octets represented as hex digits - separated by colons. The canonical representation uses - lowercase characters."; - } - - typedef uuid { - type string { - pattern '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' - + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'; - } - description - "A Universally Unique IDentifier in the string representation - defined in RFC 4122. The canonical representation uses - lowercase characters. - - The following is an example of a UUID in string representation: - f81d4fae-7dec-11d0-a765-00a0c91e6bf6 - "; - reference - "RFC 4122: A Universally Unique IDentifier (UUID) URN - Namespace"; - } - - typedef dotted-quad { - type string { - pattern - '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}' - + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'; - } - description - "An unsigned 32-bit number expressed in the dotted-quad - notation, i.e., four octets written as decimal numbers - and separated with the '.' (full stop) character."; - } -}