Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module contrail-create-vni {
- namespace "http://example.com/contrail-create-vni";
- prefix contrail-create-vni;
- import ietf-inet-types {
- prefix inet;
- }
- import tailf-common {
- prefix tailf;
- }
- import tailf-ncs {
- prefix ncs;
- }
- description
- "Bla bla...";
- revision 2016-01-01 {
- description
- "Initial revision.";
- }
- list contrail-create-vni {
- description "This service used to create the contrail Virtual Networks through NSO";
- key vn_name;
- uses ncs:service-data;
- ncs:servicepoint contrail-create-vni-servicepoint;
- leaf vn_name {
- tailf:info "Please Enter the virtual network name";
- tailf:cli-allow-range;
- type string;
- }
- leaf vn_ipaddr {
- tailf:info "Please Enter the virtual network ip address. Note the field only accept the IP Address";
- mandatory true;
- type inet:ipv4-address;
- }
- leaf vn_subnet {
- tailf:info "Please enter the subnet address for the VN. We added custom check that convert the subnet mask to CIDR notation";
- mandatory true;
- type string;
- }
- leaf vrf_name {
- tailf:info "Please provide the vrf name for the VN";
- type string;
- }
- leaf route_target {
- tailf:info "Please provide route target";
- type string;
- }
- leaf gre_tunnel_number {
- tailf:info "Please enter the tunnel number";
- type uint32 {
- range "1..199 | 1300..max" {
- error-message "Link ID is out of range. Should be between 1 and 99 or from 1300.";
- }
- }
- }
- leaf gre_tunnel_address {
- tailf:info "Please enter the tunnel ip address";
- type inet:ipv4-address;
- }
- leaf contrail_gateway {
- type leafref {
- path "/ncs:devices/ncs:device/ncs:name";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement