cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
64
Views
0
Helpful
0
Replies
Highlighted
Beginner

IP Addressing 'Operations' within a Service Model

I am trying to figure out how I might do some operations on a given IP Address within a service model. For example here is a leaf in my YANG:

leaf corporate_network_subnet_ipv4 {

  tailf:info "IPv4 Subnet Address for CVO Side Corporate Network";

  type inet:ipv4-address;

  default "10.10.10.0";

}

leaf corporate_network_subnet_mask_ipv4 {

  tailf:info "IPv4 Subnet Mask for CVO Side Corportate Network";

  type inet:ipv4-address;

  default "255.255.255.0";

}

I would like to be able to apply the following configuration within my template based on only the leaf information above:

Network: 10.10.10.0 (done)

Subnet Mask: 255.255.255.0 (done)

Default Gateway: 10.10.10.1 (Assume all defaults gateways live at the first address in the subnet. How do I do this?)

Inverse Mask: 0.0.0.255 (How do I do this?)

It would be great if there was some kind of easy way to do these IP address operations so I can minimize repetitive inputs into my service models.

0 REPLIES 0
This widget could not be displayed.