NETCONF Configuration Guide
...
Layer2
Hash
10 min
asternos hash this chapter provides examples on how to use netconf to manage hash configurations on asternos devices show hash capabilities request example to get hash capabilities via get \<filter type="subtree"> \<top> \<hash> \<capabilities/> \</hash> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ c92a2dd0 3ed0 42e8 a7dd 20a280bec590"> \<data> \<top> \<hash xmlns="http //asterfusion com/ns/yang/asternos hash"> \<capabilities> \<ecmp> \<hash algorithms>crc\</hash algorithms> \<hash algorithms>xor\</hash algorithms> \<hash algorithms>crc 32lo\</hash algorithms> \<hash algorithms>crc 32hi\</hash algorithms> \<hash fields>src ip\</hash fields> \<hash fields>dst ip\</hash fields> \<hash fields>vlan id\</hash fields> \<hash fields>l4 src port\</hash fields> \<hash fields>l4 dst port\</hash fields> \<hash fields>src mac\</hash fields> \<hash fields>dst mac\</hash fields> \<hash fields>in port\</hash fields> \</ecmp> \<lag> \<hash algorithms>crc\</hash algorithms> \<hash algorithms>xor\</hash algorithms> \<hash algorithms>crc 32lo\</hash algorithms> \<hash algorithms>crc 32hi\</hash algorithms> \<hash fields>src ip\</hash fields> \<hash fields>dst ip\</hash fields> \<hash fields>vlan id\</hash fields> \<hash fields>l4 src port\</hash fields> \<hash fields>l4 dst port\</hash fields> \<hash fields>src mac\</hash fields> \<hash fields>dst mac\</hash fields> \<hash fields>in port\</hash fields> \</lag> \</capabilities> \</hash> \</top> \</data> \</rpc reply> show global hash configurations request example to get global hash configuration via get config \<filter type="subtree"> \<top> \<hash> \<global/> \</hash> \</top> \</filter> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 01ab5ce2 b1f9 4f2d b502 451cf536acef"> \<data> \<top> \<hash xmlns="http //asterfusion com/ns/yang/asternos hash"> \<global> \<lag> \<algorithm>crc\</algorithm> \<seed>100\</seed> \<hash fields>dst ip\</hash fields> \<hash fields>src ip\</hash fields> \</lag> \<ecmp> \<algorithm>xor\</algorithm> \<seed>10\</seed> \<hash fields>dst ip\</hash fields> \<hash fields>src ip\</hash fields> \</ecmp> \</global> \</hash> \</top> \</data> \</rpc reply> create global hash configurations note the algorithm must be manually specified as crc before configuring the seed field request example to create global hash configuration via edit config \<config message id="100"> \<top> \<hash> \<global operation="create"> \<lag> \<algorithm>crc\</algorithm> \<seed>100\</seed> \<hash fields>src ip\</hash fields> \<hash fields>dst ip\</hash fields> \</lag> \<ecmp> \<algorithm>xor\</algorithm> \<hash fields>src ip\</hash fields> \<hash fields>dst ip\</hash fields> \</ecmp> \</global> \</hash> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 5a4635a2 4758 41de 9693 9e9da22374a2"> \<ok/> \</rpc reply> modify global hash configurations request example to modify global hash configuration via edit config \<config message id="100"> \<top> \<hash> \<global operation="merge"> \<lag> \<algorithm>crc\</algorithm> \<seed>100\</seed> \<hash fields>src mac\</hash fields> \<hash fields>dst mac\</hash fields> \</lag> \<ecmp> \<algorithm>xor\</algorithm> \<hash fields>src mac\</hash fields> \<hash fields>dst mac\</hash fields> \</ecmp> \</global> \</hash> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 5104c146 8ad4 487b a196 14c34b0db0bf"> \<ok/> \</rpc reply> delete lag hash configurations request example to delete global lag hash configuration via edit config \<config message id="100"> \<top> \<hash> \<global> \<lag operation="delete"> \</lag> \</global> \</hash> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid 1f5de122 d95f 40d3 9738 45bc39ad4090"> \<ok/> \</rpc reply> delete global hash configurations request example to delete global hash configuration via edit config \<config message id="100"> \<top> \<hash> \<global operation="delete"> \</global> \</hash> \</top>\</config> response example \<rpc reply xmlns="urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0" message id="urn\ uuid\ ce5f342d c0a3 45e0 9e2b bb32578e4628"> \<ok/> \</rpc reply>
