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

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

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

Interface.isEnabled介绍

[英]This leaf contains the configured, desired state of the interface. Systems that implement the IF-MIB use the value of this leaf in the 'running' datastore to set IF-MIB.ifAdminStatus to 'up' or 'down' after an ifEntry has been initialized, as described in RFC 2863. Changes in this leaf in the 'running' datastore are reflected in ifAdminStatus, but if ifAdminStatus is changed over SNMP, this leaf is not affected.
[中]此叶包含已配置的所需接口状态。实现IF-MIB的系统使用“正在运行”数据存储中此叶的值来设置IF-MIB。如RFC 2863中所述,在初始化ifEntry后,ifAdminStatus变为“向上”或“向下”。“正在运行”数据存储中此叶中的更改反映在ifAdminStatus中,但如果通过SNMP更改ifAdminStatus,则此叶不受影响。

代码示例

代码示例来源: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: io.fd.hc2vpp.v3po/v3po2vpp

private void setInterfaceAttributes(final InstanceIdentifier<Interface> id, final Interface swIf,
                  final String swIfName, final WriteContext writeContext)
    throws WriteFailedException {
  setInterfaceFlags(id, swIfName, interfaceContext.getIndex(swIfName, writeContext.getMappingContext()),
      swIf.isEnabled()
          ? (byte) 1
          : (byte) 0);
}

代码示例来源:origin: io.fd.honeycomb.v3po/v3po2vpp

private void setInterfaceAttributes(final InstanceIdentifier<Interface> id, final Interface swIf,
                  final String swIfName, final WriteContext writeContext)
  throws VppBaseCallException, WriteTimeoutException {
  setInterfaceFlags(id, swIfName, interfaceContext.getIndex(swIfName, writeContext.getMappingContext()),
    swIf.isEnabled() ? (byte) 1 : (byte) 0);
}

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

return false;
if (!Objects.equals(_enabled, other.isEnabled())) {
  return false;

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

return false;
if (!Objects.equals(_enabled, other.isEnabled())) {
  return false;

代码示例来源: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.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

if (other.isEnabled() != null) {
    return false;
} else if(!_enabled.equals(other.isEnabled())) {
  return false;

相关文章