Esempio n. 1
0
        <supported-plmn-slices xc:operation="create">
                <plmn-id>00202</plmn-id>
                <s-nssai xc:operation="create">
                	<sst>embb</sst>
                	<sd>16777215</sd>
                </s-nssai>
                <s-nssai xc:operation="create">
                	<sst>urllc</sst>
                	<sd>16777215</sd>
                </s-nssai>
                <s-nssai xc:operation="create">
                	<sst>miot</sst>
                	<sd>16777215</sd>
                </s-nssai>
                <s-nssai xc:operation="create">
                	<sst>v2x</sst>
                	<sd>16777215</sd>
                </s-nssai>
                
                
        </supported-plmn-slices>
        
</gnb-cu-up>

</config>"""

print(
    mgr.edit_config(config=defPathCuUp,
                    target='running',
                    default_operation=None))
Esempio n. 2
0
from netconf_client.connect import connect_ssh
from netconf_client.ncclient import Manager
HOST = "10.55.1.2"
PORT = 31833
session = connect_ssh(host=HOST, port=PORT, username="******", password="******")
mgr = Manager(session, timeout=12000000)
rpc = """
<config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<gnb-cu-up xmlns="http://accelleran.com/ns/yang/accelleran-gnb-cu-up" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="replace">
	<admin-state>locked</admin-state>
</gnb-cu-up>
</config>"""
print(mgr.edit_config(config=rpc, target='running', default_operation=None))