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;
}
}
}
}