SLA-Netconf
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /show-sla-results | — | — | Y |
| /show-track-results | — | — | Y |
| /slas/{id} | Y | merge, replace, create, delete | — |
| /tracks/{id} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”Get All Existing SLA Configuration On Device
Section titled “Get All Existing SLA Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <slas/> </top></filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <slas xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <sla> <id>22</id> <sla-type>icmp-echo</sla-type> <destination-ip>100.1.20.1</destination-ip> <source-port>Ethernet1</source-port> <timeout>10</timeout> <frequency>20</frequency> </sla> <sla> <id>333</id> <sla-type>icmp-echo</sla-type> <destination-ip>100.1.30.1</destination-ip> <source-port>Vlan100</source-port> </sla> </slas> </top></data>Get Single SLA Configuration On Device
Section titled “Get Single SLA Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <slas> <sla> <id>22</id> </sla> </slas> </top></filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <slas xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <sla> <id>22</id> <sla-type>icmp-echo</sla-type> <destination-ip>100.1.20.1</destination-ip> <source-port>Ethernet1</source-port> <timeout>10</timeout> <frequency>20</frequency> </sla> </slas> </top></data>Get All Existing Track Configuration On Device
Section titled “Get All Existing Track Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <tracks/> </top></filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <track> <id>123</id> <sla-id>22</sla-id> </track> <track> <id>2345</id> <sla-id>333</sla-id> </track> </tracks> </top></data>Get Single Track Configuration On Device
Section titled “Get Single Track Configuration On Device”Request example via rpc get-config
Section titled “Request example via rpc get-config”<filter type="subtree"> <top> <tracks> <track> <id>123</id> </track> </tracks> </top></filter>Reply example via rpc get-config
Section titled “Reply example via rpc get-config”<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <track> <id>123</id> <sla-id>333</sla-id> </track> </tracks> </top></data>Show SLA Results
Section titled “Show SLA Results”Request example via rpc
Section titled “Request example via rpc”<show-sla-results/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <data xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <id>22</id> <destination-ip>100.1.10.1</destination-ip> <rtt-min>8.16</rtt-min> <rtt-avg>25.698</rtt-avg> <rtt-max>95.2</rtt-max> <rtt-mdev>43.505</rtt-mdev> <packet-loss>0%</packet-loss> </data> <data xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <id>333</id> <destination-ip>100.1.20.1</destination-ip> <rtt-min>0.0</rtt-min> <rtt-avg>0.0</rtt-avg> <rtt-max>0.0</rtt-max> <rtt-mdev>0.0</rtt-mdev> <packet-loss>100%</packet-loss> </data></rpc-reply>Show Track Results
Section titled “Show Track Results”Request example via rpc
Section titled “Request example via rpc”<show-track-results/>Reply example
Section titled “Reply example”<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <data xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <id>123</id> <sla-id>22</sla-id> <state>success</state> </data> <data xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <id>2345</id> <sla-id>333</sla-id> <state>failure</state> </data></rpc-reply>Create SLA
Section titled “Create SLA”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top> <slas xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <sla operation="create"> <id>22</id> <sla-type>icmp-echo</sla-type> <destination-ip>100.1.20.1</destination-ip> <source-port>Ethernet1</source-port> <timeout>10</timeout> <frequency>20</frequency> </sla> </slas> </top></config>Modify SLA
Section titled “Modify SLA”Request example via rpc edit-config (merge)
Section titled “Request example via rpc edit-config (merge)”<config> <top> <slas xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <sla operation="merge"> <id>22</id> <source-port>Vlan100</source-port> <timeout>30</timeout> <frequency>60</frequency> </sla> </slas> </top></config>Delete SLA
Section titled “Delete SLA”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top> <slas xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <sla operation="delete"> <id>22</id> </sla> </slas> </top></config>Create Track
Section titled “Create Track”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top> <tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <track operation="create"> <id>123</id> <sla-id>22</sla-id> </track> </tracks> </top></config>Modify Track
Section titled “Modify Track”Request example via rpc edit-config (merge)
Section titled “Request example via rpc edit-config (merge)”<config> <top> <tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <track operation="merge"> <id>123</id> <sla-id>333</sla-id> </track> </tracks> </top></config>Delete Track
Section titled “Delete Track”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top> <tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla"> <track operation="delete"> <id>123</id> </track> </tracks> </top></config>Create Static Route with Track
Section titled “Create Static Route with Track”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top xmlns="http://www.asterfusion.com/asternos-schema/1.0/config"> <static-routes> <static-route operation="create"> <vrf>Vrf200</vrf> <prefix>20.0.0.1/32</prefix> <nexthops> <ip-ifindex-nexthops> <gateway>200.0.0.1</gateway> <nh-vrf>default</nh-vrf> <interface>Vlan200</interface> <track>11</track> </ip-ifindex-nexthops> </nexthops> </static-route> </static-routes> </top></config>Delete Static Route with Track
Section titled “Delete Static Route with Track”Request example via rpc edit-config
Section titled “Request example via rpc edit-config”<config> <top xmlns="http://www.asterfusion.com/asternos-schema/1.0/config"> <static-routes> <static-route operation="delete"> <vrf>Vrf200</vrf> <prefix>10.1.1.0/24</prefix> </static-route> </static-routes> </top></config>Properties Descriptions
Section titled “Properties Descriptions”Service Level Agreement Monitor(SLA) configurations
Section titled “Service Level Agreement Monitor(SLA) configurations”Tree Diagram
module: asternos-sla +--rw slas +--rw sla* [id] +--rw id uint32 +--rw sla-type? enumeration +--rw destination-ip inet:ip-address-no-zone +--rw source-port? union +--rw timeout? uint16 +--rw frequency? uint16Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| slas | M | Path-only node, has no configurable value. Service Level Agreement Monitor(SLA) configurations. | |
| sla | M | Path-only node, has no configurable value. | |
| id | O | 1..4294967295 | Service Level Agreement Monitor(SLA) id. |
| sla-type | O | ”icmp-echo” | Types cannot be changed once set. |
| destination-ip | M | inet:ip-address-no-zone | Destination ip address of ICMP/ICMP6 request of Service Level Agreement Monitor(SLA). This field is mandatory for type of ‘icmp-echo’. Cannot be changed once set. |
| source-port | O | Ethernet name | Source port to send ICMP/ICMP6 request packets of Service Level Agreement Monitor(SLA) |
| timeout | O | 1..3600 | Time to wait for ICMP/ICMP6 response of Service Level Agreement Monitor(SLA). Default value: 5 |
| frequency | O | 1..3600 | Interval between two consecutive detections of Service Level Agreement Monitor(SLA). Default value: 10 |
Route track configurations
Section titled “Route track configurations”Tree Diagram
module: asternos-sla +--rw tracks +--rw track* [id] +--rw id uint32 +--rw sla-id uint32Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| tracks | M | Path-only node, has no configurable value. Route track configurations | |
| track | M | Path-only node, has no configurable value. | |
| id | O | 1..4294967295 | track id. |
| sla-id | M | 1..4294967295 | SLA id. |
Show Sla Results
Section titled “Show Sla Results”Tree Diagram
module: asternos-sla
rpcs: +---x show-sla-results +--ro output +--ro data* [id] +--ro id string +--ro destination-ip? string +--ro rtt-min? string +--ro rtt-avg? string +--ro rtt-max? string +--ro rtt-mdev? string +--ro packet-loss? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-sla-results | O | ||
| data | M | Path-only node, has no configurable value. List of SLAs. | |
| id | O | string | |
| destination-ip | O | string | |
| rtt-min | O | string | |
| rtt-avg | O | string | |
| rtt-max | O | string | |
| rtt-mdev | O | string | |
| packet-loss | O | string |
Show Track Results
Section titled “Show Track Results”Tree Diagram
module: asternos-sla
rpcs: +---x show-track-results +--ro output +--ro data* [id] +--ro id string +--ro sla-id? string +--ro state? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-track-results | O | ||
| data | M | Path-only node, has no configurable value. List of tracks. | |
| id | O | string | |
| sla-id | O | string | |
| state | O | string | The state of the track. |