leaf sdn-account {
description "Configured SDN account associated with this cloud account";
type leafref {
- path "/rw-sdn:sdn-account/rw-sdn:name";
+ path "/rw-sdn:sdn/rw-sdn:account/rw-sdn:name";
}
}
prefix tailf-common;
}
- tailf-common:annotate "/rw-sdn:sdn-account/rw-sdn:connection-status" {
+ tailf:annotate "/rw-sdn:sdn/rw-sdn:account/rw-sdn:connection-status" {
tailf-common:callpoint rw_callpoint;
}
import rw-pb-ext {
- prefix "rw-pb-ext";
+ prefix "rwpb";
}
import rwsdn {
"Initial revision.";
}
- list sdn-account {
- rw-pb-ext:msg-new SDNAccountConfig;
+ container sdn {
+ list account {
+ rwpb:msg-new SDNAccountConfig;
+ key "name";
+ leaf name {
+ type string;
+ }
- key "name";
- leaf name {
- type string;
+ uses rwsdn:sdn-provider-auth;
+ uses rwsdn:connection-status;
}
-
- uses rwsdn:sdn-provider-auth;
- uses rwsdn:connection-status;
}
rpc update-sdn-status {
list key-pair {
key "name";
- description "Used to configure the list of public keys to be injected as part
+ description "Used to configure the list of public keys to be injected as part
of ns instantiation";
leaf name {
description "Name of this key pair";
input {
leaf name {
mandatory true;
- description "Name of the Network Service";
+ description "Name of the Network Service";
type string;
}
leaf nsd-ref {
key "placement-group-ref vnfd-id-ref";
leaf vnfd-id-ref {
- description
- "A reference to a vnfd. This is a
+ description
+ "A reference to a vnfd. This is a
leafref to path:
../../../../nsd:constituent-vnfd
+ [nsr:id = current()/../nsd:id-ref]
"The SDN account to use when requesting resources for
this vnffgr";
type leafref {
- path "/rwsdn:sdn-account/rwsdn:name";
+ path "/rwsdn:sdn/rwsdn:account/rwsdn:name";
}
}
key "id";
description
"Recent operational events for this network service.
- Though the model does not impose any restrictions on the numbe of events,
- the max operational events will be limited to the most recent 10";
+ Though the model does not impose any restrictions on the numbe of events,
+ the max operational events will be limited to the most recent 10";
leaf id {
description "The id of the instance";
by multiple cloud accounts when that becomes available.";
type string;
}
-
+
list vnf-cloud-account-map {
- description
+ description
"Mapping VNF to Cloud Account where VNF will be instantiated";
key "member-vnf-index-ref";
}
list vl-cloud-account-map {
- description
+ description
"Mapping VL to Cloud Account where VL will be instantiated";
key "vld-id-ref";
leaf vld-id-ref {
- description
+ description
"A reference to a vld.
leafref path ../../nsd/vld/id";
type string;
augment /nsr:start-network-service/nsr:input{
uses rw-ns-instance-config;
- }
+ }
augment /nsr:ns-instance-opdata/nsr:nsr {
uses manotypes:action-param;
"The SDN account associted with the cloud account using which an
NS was instantiated.";
type leafref {
- path "/rw-sdn:sdn-account/rw-sdn:name";
+ path "/rw-sdn:sdn/rw-sdn:account/rw-sdn:name";
}
}
notification nsm-notification {
description "Notification for NSM Events.
- The timestamp of this event is automatically expressed
+ The timestamp of this event is automatically expressed
in human readble format - 1970-01-01T00:00:00Z";
leaf event {
vnfr.mgmt_address = cp_ref.connection_point_params.mgmt_address
vnfr.mgmt_port = 5000
vnfr_list.append(vnfr)
-
+
vdu = vnfr.vdu_list.add()
vdu.name = cp_ref.connection_point_params.name
vdu.port_id = cp_ref.connection_point_params.port_id
if(len(classifier_list) == 2):
meta[vnffgr.classifier[0].id] = '0x' + ''.join(str("%0.2X"%int(i)) for i in vnffgr.classifier[1].ip_address.split('.'))
meta[vnffgr.classifier[1].id] = '0x' + ''.join(str("%0.2X"%int(i)) for i in vnffgr.classifier[0].ip_address.split('.'))
-
+
self._log.debug("VNFFG Meta VNFFG chain is {}".format(meta))
-
+
for classifier in classifier_list:
vnffgr_cl = [_classifier for _classifier in vnffgr.classifier if classifier.id == _classifier.id]
if len(vnffgr_cl) > 0:
vnffgcl.port_id = vnffgr_cl[0].port_id
vnffgcl.vm_id = vnffgr_cl[0].vm_id
# Get the symmetric classifier endpoint ip and set it in nsh ctx1
-
- vnffgcl.vnffg_metadata.ctx1 = meta.get(vnffgr_cl[0].id,'0')
+
+ vnffgcl.vnffg_metadata.ctx1 = meta.get(vnffgr_cl[0].id,'0')
vnffgcl.vnffg_metadata.ctx2 = '0'
vnffgcl.vnffg_metadata.ctx3 = '0'
vnffgcl.vnffg_metadata.ctx4 = '0'
del self._vnffgr_list[vnffgr_id]
class SDNAccountDtsHandler(object):
- XPATH = "C,/rw-sdn:sdn-account"
+ XPATH = "C,/rw-sdn:sdn/rw-sdn:account"
def __init__(self, dts, log, parent):
self._dts = dts
def _register_show_status(self):
def get_xpath(sdn_name=None):
- return "D,/rw-sdn:sdn-account{}/rw-sdn:connection-status".format(
+ return "D,/rw-sdn:sdn/rw-sdn:account{}/rw-sdn:connection-status".format(
"[name='%s']" % sdn_name if sdn_name is not None else ''
)
yield from self._register_validate_rpc()
class SDNAccountDtsHandler(object):
- XPATH = "C,/rw-sdn:sdn-account"
+ XPATH = "C,/rw-sdn:sdn/rw-sdn:account"
def __init__(self, dts, log, parent):
self._dts = dts