跳转到内容
Ask AI

SLA-Netconf

此内容尚不支持你的语言。

YANG Pathget/get-configedit-configrpc
/show-sla-results——Y
/show-track-results——Y
/slas/{id}Ymerge, replace, create, delete—
/tracks/{id}Ymerge, replace, create, delete—

Get All Existing SLA Configuration On Device

Section titled “Get All Existing SLA Configuration On Device”
<filter type="subtree">
<top>
<slas/>
</top>
</filter>
<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>
<filter type="subtree">
<top>
<slas>
<sla>
<id>22</id>
</sla>
</slas>
</top>
</filter>
<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”
<filter type="subtree">
<top>
<tracks/>
</top>
</filter>
<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>
<filter type="subtree">
<top>
<tracks>
<track>
<id>123</id>
</track>
</tracks>
</top>
</filter>
<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/>
<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/>
<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>
<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>

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>
<config>
<top>
<slas xmlns="http://asterfusion.com/ns/yang/asternos-sla">
<sla operation="delete">
<id>22</id>
</sla>
</slas>
</top>
</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>

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>
<config>
<top>
<tracks xmlns="http://asterfusion.com/ns/yang/asternos-sla">
<track operation="delete">
<id>123</id>
</track>
</tracks>
</top>
</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>
<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>

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? uint16

Table of Properties

NameRequiredType/RangeDescription
slasMPath-only node, has no configurable value.
Service Level Agreement Monitor(SLA) configurations.
slaMPath-only node, has no configurable value.
idO1..4294967295Service Level Agreement Monitor(SLA) id.
sla-typeO”icmp-echo”Types cannot be changed once set.
destination-ipMinet:ip-address-no-zoneDestination 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-portOEthernet nameSource port to send ICMP/ICMP6 request packets of Service Level Agreement Monitor(SLA)
timeoutO1..3600Time to wait for ICMP/ICMP6 response of Service Level Agreement Monitor(SLA).
Default value: 5
frequencyO1..3600Interval between two consecutive detections of Service Level Agreement Monitor(SLA).
Default value: 10

Tree Diagram

module: asternos-sla
+--rw tracks
+--rw track* [id]
+--rw id uint32
+--rw sla-id uint32

Table of Properties

NameRequiredType/RangeDescription
tracksMPath-only node, has no configurable value.
Route track configurations
trackMPath-only node, has no configurable value.
idO1..4294967295track id.
sla-idM1..4294967295SLA id.

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? string

Table of Properties

NameRequiredType/RangeDescription
show-sla-resultsO
dataMPath-only node, has no configurable value.
List of SLAs.
idOstring
destination-ipOstring
rtt-minOstring
rtt-avgOstring
rtt-maxOstring
rtt-mdevOstring
packet-lossOstring

Tree Diagram

module: asternos-sla
rpcs:
+---x show-track-results
+--ro output
+--ro data* [id]
+--ro id string
+--ro sla-id? string
+--ro state? string

Table of Properties

NameRequiredType/RangeDescription
show-track-resultsO
dataMPath-only node, has no configurable value.
List of tracks.
idOstring
sla-idOstring
stateOstringThe state of the track.