Port
This chapter provides examples of how to configure and manage Physical using NETCONF.
There are some attributes that only can be configured with Physical port, such as speed, auto-negotiation.
Configuring Physical Port Speed
Section titled “Configuring Physical Port Speed”The following example shows how to configure the speed of a physical port to 10G and disable auto-negotiation.
Request example to set speed to 10G and disable auto-negotiation via edit-config
<config> <top> <interfaces> <interface> <name>Ethernet1</name> <ethernet-config operation="merge"> <auto-negotiate>false</auto-negotiate> <speed>1G</speed> </ethernet-config> </interface> </interfaces> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b29cf034-f496-4170-a7f6-94ebb910ec22"> <ok/></rpc-reply>Configure Physical Port FEC mode for 100G port
Section titled “Configure Physical Port FEC mode for 100G port”Request example to disable FEC mode via edit-config
<config><top><interfaces> <interface> <name>Ethernet49</name> <ethernet-config operation="merge"> <fec>none</fec> </ethernet-config> </interface></interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:7dab4208-65f3-469c-bb92-9381e9582842"> <ok/></rpc-reply>Configure Port Bandwidth Alerting
Section titled “Configure Port Bandwidth Alerting”The following example shows how to configure bandwidth alerting on a physical port.
Request example to set bandwidth alerting via edit-config
<config><top><interfaces> <interface> <name>Ethernet2</name> <bandwidth-util-warn operation="create"> <rx-alert-threshold>90</rx-alert-threshold> <rx-resume-threshold>70</rx-resume-threshold> <tx-alert-threshold>90</tx-alert-threshold> <tx-resume-threshold>70</tx-resume-threshold> </bandwidth-util-warn> </interface></interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:368fbafd-2cad-49fd-a965-98611a2944ce"> <ok/></rpc-reply>Configure Port Global Link Delay
Section titled “Configure Port Global Link Delay”User can configure a global link delay time for physical ports.
Request example to set global link delay time via edit-config
<config> <top> <ports-global operation="create"> <link-delay>100</link-delay> </ports-global> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c6cfb409-5037-4efa-bd52-036ec5aed0e5"> <ok/></rpc-reply>