module ieee-dot1Q-TPMR { namespace "urn:ieee:params:xlm:ns:yang:ieee-dot1Q-TPMR"; prefix "dot1Q-TPMR"; import ieee-dot1Q-bridge {prefix "dot1Q"; } import yang-types { prefix "yang"; } //import ieee-types { prefix "ieee"; } /* * A Two-Port MAC Relay (TPMR) Bridge contains a single Bridge * component. */ deviation /dot1Q:bridge/dot1Q:component { deviate replace { max-elements 1; } } /* * A Two-Port MAC Relay (TPMR) Bridging does not have a Filtering * Database assocaited with it. */ deviation /dot1Q:bridge/dot1Q:component/dot1Q:filtering-database { deviate not-supported; } /* * A Two-Port MAC Relay (TPMR) Bridging does not hav a Bridge * VLAN object assocaited with it. */ deviation /dot1Q:bridge/dot1Q:bridge-vlan { deviate not-supported; } /* * A Two-Port MAC Relay (TPMR) Bridging only has 2 Bridge * Ports. */ deviation /dot1Q:bridge/dot1Q:component/dot1Q:bridge-port { deviate replace { max-elements 2; } } deviation /dot1Q:bridge/dot1Q:component/dot1Q:bridge-port-state { deviate replace { max-elements 2; } } /* * A Two-Port MAC Relay (TPMR) Bridging has additional node data * assocaited with it. */ augment "/dot1Q:bridge/dot1Q:component/dot1Q:bridge-port" { leaf managed-address { description "A Boolean value, which is TRUE if the MAC address is the management address for the TPMR, and is otherwise FALSE."; type boolean; default "true"; } container mac-status-propagation { leaf link-notify { description "The current value (Boolean) of LinkNotify (23.5.1) being used by the MSP state machines."; type boolean; default "false"; } leaf link-notify-wait { description "The current value, in centiseconds, of LinkNotifyWait (23.5.2) being used by the MSP state machines."; type yang:timeticks; } leaf link-notify-retry { description "The current value, in centiseconds, of LinkNotifyRetry (23.5.3) being used by the MSP state machines."; type yang:timeticks; } leaf mac-notify { description "The current value (Boolean) of MACNotify (23.5.4) being used by the MSP state machines."; type boolean; default "false"; } leaf mac-notify-time { description "The current value, in centiseconds, of MACNotifyTime (23.5.5) being used by the MSP state machines."; type yang:timeticks; } leaf mac-recover-time { description "The current value, in centiseconds, of MACRecoverTime (23.5.6) being used by the MSP state machines."; type yang:timeticks; } } } augment "/dot1Q:bridge/dot1Q:component/dot1Q:bridge-port-state/dot1Q:bridge-port-statistics" { leaf acks-tx { description "The number of acks transmitted (23.6.15) by the Port’s Transmit Process as a consequence of txAck being set."; type yang:counter64; } leaf add-notificatons-tx { description "The number of adds transmitted (23.6.16) by the Port’s Transmit Process as a consequence of txAdd being set."; type yang:counter64; } leaf loss-notification-tx { description "The number of losses transmitted (23.6.18) by the Port’s Transmit Process as a consequence of txLoss being set."; type yang:counter64; } leaf loss-confirmation-tx { description "The number of loss confirms transmitted (23.6.19) by the Port’s Transmit Process as a consequence of txLossConfirm being set."; type yang:counter64; } leaf acks-rx { description "The number of acks received (23.6.10) by the Port’s Transmit Process."; type yang:counter64; } leaf add-notificatons-rx { description "The number of adds received (23.6.11) by the Port’s Receive Process."; type yang:counter64; } leaf loss-notification-rx { description "The number of losses received (23.6.13) by the Port’s Receive Process."; type yang:counter64; } leaf loss-confirmation-rx { description "The number of loss confirms received (23.6.14) by the Port’s Receive Process."; type yang:counter64; } leaf add-events { description "The number of transitions to STM:ADD directly from STM:DOWN or STM:LOSS (23.8)."; type yang:counter64; } leaf loss-events { description "The number of transitions to STM:LOSS directly from STM:UP or STM:ADD (23.8)."; type yang:counter64; } leaf mac-status-notifications { description "The number of transitions to SNM:MAC_NOTIFICATION (23.9)."; type yang:counter64; } } }