cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1192
Views
5
Helpful
7
Comments
Chandra L
Cisco Employee
Cisco Employee

Hi,

 

I have a simple service to configure an IP under loopback interface, but how do I delete the IP, if the one I am going to configure is pre-existing on another interface or at least give a warning that this IP is already in use?

 

Here is my yang file - 

 

module colour {
namespace "http://com/example/colour";
prefix colour;

import ietf-inet-types {
prefix inet;
}
import tailf-ncs {
prefix ncs;
}
import tailf-common {
prefix tailf;
}
list colour {
key name;

leaf name {
type string;
}

uses ncs:service-data;
ncs:servicepoint "colour";

leaf colour {
tailf:info "Select the Colour for SLA";
type enumeration {
enum BLUE;
enum GREEN;
enum RED;
}
}

leaf intf {
tailf:info "Select Loopback Interface number";
type enumeration {
enum 101;
enum 102;
enum 103;
}
}
leaf ip_address {
tailf:info "Select IP Address";
type enumeration {
enum 11.1.1.1;
enum 11.1.1.100;
enum 11.1.1.200;
}
}
}
}

7 Comments
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: