Mod aaa-12 为上层提供添加和删除华为设备的接口。
RCA: SOL: 修改人:dongxiancun 检视人:dongxiancun
This commit is contained in:
parent
e4feabf89f
commit
ebc8ba4b5b
|
@ -3,6 +3,7 @@ module device-status {
|
||||||
namespace "urn:cmcc:cmhi:adaptation-layer:device-status";
|
namespace "urn:cmcc:cmhi:adaptation-layer:device-status";
|
||||||
prefix "device-status";
|
prefix "device-status";
|
||||||
|
|
||||||
|
import driver-register { prefix "dr"; revision-date 2019-07-29; }
|
||||||
import network-topology { prefix "topo"; revision-date "2013-10-21"; }
|
import network-topology { prefix "topo"; revision-date "2013-10-21"; }
|
||||||
import yang-ext { prefix ext; }
|
import yang-ext { prefix ext; }
|
||||||
|
|
||||||
|
@ -37,6 +38,15 @@ module device-status {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grouping driver-status {
|
||||||
|
container driver-id-info {
|
||||||
|
leaf-list driver {
|
||||||
|
type dr:driver-id;
|
||||||
|
description "该设备的驱动列表";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
augment "/topo:network-topology/topo:topology/topo:node" {
|
augment "/topo:network-topology/topo:topology/topo:node" {
|
||||||
ext:augment-identifier "node-cpu";
|
ext:augment-identifier "node-cpu";
|
||||||
uses cpu-status;
|
uses cpu-status;
|
||||||
|
@ -46,4 +56,9 @@ module device-status {
|
||||||
ext:augment-identifier "node-memory";
|
ext:augment-identifier "node-memory";
|
||||||
uses mem-status;
|
uses mem-status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
augment "/topo:network-topology/topo:topology/topo:node" {
|
||||||
|
ext:augment-identifier "node-driver";
|
||||||
|
uses driver-status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
// Contents of "huawei-connector"
|
||||||
|
module huawei-connector {
|
||||||
|
namespace "urn:cmcc:cmhi:huawei-connector";
|
||||||
|
prefix "huawei-connector";
|
||||||
|
|
||||||
|
import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; }
|
||||||
|
|
||||||
|
revision 2019-08-09 {
|
||||||
|
description "Initial revision";
|
||||||
|
}
|
||||||
|
|
||||||
|
grouping connect-device {
|
||||||
|
leaf id {
|
||||||
|
type inet:uri;
|
||||||
|
}
|
||||||
|
leaf ip {
|
||||||
|
type inet:ip-address;
|
||||||
|
mandatory true;
|
||||||
|
}
|
||||||
|
leaf port {
|
||||||
|
type inet:port-number;
|
||||||
|
mandatory true;
|
||||||
|
}
|
||||||
|
leaf user-name {
|
||||||
|
type string;
|
||||||
|
mandatory true;
|
||||||
|
}
|
||||||
|
leaf password {
|
||||||
|
type string;
|
||||||
|
mandatory true;
|
||||||
|
}
|
||||||
|
leaf connect {
|
||||||
|
type boolean;
|
||||||
|
default true;
|
||||||
|
description "是否连接该设备,默认连接,当为false时,不与设备建联,仅仅用于保存配置";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
container connector-info {
|
||||||
|
list remote-devices {
|
||||||
|
key "id";
|
||||||
|
uses connect-device;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -71,6 +71,7 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
|
||||||
<artifactId>features-restconf</artifactId>
|
<artifactId>features-restconf</artifactId>
|
||||||
<classifier>features</classifier>
|
<classifier>features</classifier>
|
||||||
<type>xml</type>
|
<type>xml</type>
|
||||||
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue