Hi,
I have the below yang file.
container comp {
list A {
key name;
max-elements 64;
leaf name {
type string{
length "1..256";
}
mandatory true;
tailf:info "Name of service";
}
leaf Num {
type uint16;
mandatory true;
tailf:info "Route no";
}
}
list B-Service {
when "/comp/A";
key x-list;
leaf x-list {
type leafref {
path "/comp/A/name";
}
}
tailf:action start {
tailf:exec "/home/eart/enable.sh" {
tailf:args "-p $(path)";
}
output {
leaf response {
type string;
}
}
tailf:action getbindings {
tailf:actionpoint ShowInfo;
output {
leaf response {
type string;
}
}
}
}
}
I would like to create xml request to call action, use with netconf-console
I was trying with below request.
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<action xmlns="http://tail-f.com/ns/netconf/actions/1.0">
<data>
<comp xmlns="http://">
<B-Service>
<start/>
</B-Service>
</comp>
</data>
</action>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<close-session/>
</rpc>
But unable to get result.
Thanks for your support.
Regards,
Jagdish