org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface.getLinkUpDownTrapEnable()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface.getLinkUpDownTrapEnable()方法的一些代码示例,展示了Interface.getLinkUpDownTrapEnable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interface.getLinkUpDownTrapEnable()方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface
类名称:Interface
方法名:getLinkUpDownTrapEnable

Interface.getLinkUpDownTrapEnable介绍

[英]Controls whether linkUp/linkDown SNMP notifications should be generated for this interface. If this node is not configured, the value 'enabled' is operationally used by the server for interfaces that do not operate on top of any other interface (i.e., there are no 'lower-layer-if' entries), and 'disabled' otherwise.
[中]控制是否应为此接口生成linkUp/linkDown SNMP通知。如果未配置此节点,则服务器在操作上使用值“enabled”用于不在任何其他接口之上操作的接口(即,没有“lower layer If”条目),否则使用值“disabled”。

代码示例

代码示例来源:origin: org.opendaylight.mdsal.binding.model.ietf/rfc7223

public InterfaceBuilder(Interface base) {
  this.key = base.key();
  this._name = base.getName();
  this._description = base.getDescription();
  this._linkUpDownTrapEnable = base.getLinkUpDownTrapEnable();
  this._type = base.getType();
  this._enabled = base.isEnabled();
  if (base instanceof InterfaceImpl) {
    InterfaceImpl impl = (InterfaceImpl) base;
    if (!impl.augmentation.isEmpty()) {
      this.augmentation = new HashMap<>(impl.augmentation);
    }
  } else if (base instanceof AugmentationHolder) {
    @SuppressWarnings("unchecked")
    Map<Class<? extends Augmentation<Interface>>, Augmentation<Interface>> aug =((AugmentationHolder<Interface>) base).augmentations();
    if (!aug.isEmpty()) {
      this.augmentation = new HashMap<>(aug);
    }
  }
}

代码示例来源:origin: org.opendaylight.mdsal.binding.model.ietf/rfc7223

return false;
if (!Objects.equals(_linkUpDownTrapEnable, other.getLinkUpDownTrapEnable())) {
  return false;

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-interfaces

return false;
if (!Objects.equals(_linkUpDownTrapEnable, other.getLinkUpDownTrapEnable())) {
  return false;

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-interfaces

public InterfaceBuilder(Interface base) {
  if (base.getKey() == null) {
    this._key = new InterfaceKey(
      base.getName()
    );
    this._name = base.getName();
  } else {
    this._key = base.getKey();
    this._name = _key.getName();
  }
  this._description = base.getDescription();
  this._linkUpDownTrapEnable = base.getLinkUpDownTrapEnable();
  this._type = base.getType();
  this._enabled = base.isEnabled();
  if (base instanceof InterfaceImpl) {
    InterfaceImpl impl = (InterfaceImpl) base;
    if (!impl.augmentation.isEmpty()) {
      this.augmentation = new HashMap<>(impl.augmentation);
    }
  } else if (base instanceof AugmentationHolder) {
    @SuppressWarnings("unchecked")
    AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>) base;
    if (!casted.augmentations().isEmpty()) {
      this.augmentation = new HashMap<>(casted.augmentations());
    }
  }
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-interfaces

public InterfaceBuilder(Interface base) {
  if (base.getKey() == null) {
    this._key = new InterfaceKey(
      base.getName()
    );
    this._name = base.getName();
  } else {
    this._key = base.getKey();
    this._name = _key.getName();
  }
  this._description = base.getDescription();
  this._linkUpDownTrapEnable = base.getLinkUpDownTrapEnable();
  this._type = base.getType();
  this._enabled = base.isEnabled();
  if (base instanceof InterfaceImpl) {
    InterfaceImpl impl = (InterfaceImpl) base;
    if (!impl.augmentation.isEmpty()) {
      this.augmentation = new HashMap<>(impl.augmentation);
    }
  } else if (base instanceof AugmentationHolder) {
    @SuppressWarnings("unchecked")
    AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>) base;
    if (!casted.augmentations().isEmpty()) {
      this.augmentation = new HashMap<>(casted.augmentations());
    }
  }
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-interfaces

if (other.getLinkUpDownTrapEnable() != null) {
    return false;
} else if(!_linkUpDownTrapEnable.equals(other.getLinkUpDownTrapEnable())) {
  return false;

相关文章