VLAN can not be created

Евгений 9165394577 at mail.ru
Tue Nov 26 18:15:20 AEDT 2019


Hello,

I want to create VLAN interface using the commands described here:

https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Network

but I get an error.

kury at kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: 
application/json" -X POST -d '{"data":["eth1", 101] }' 
https://${bmc}/xyz/openbmc_project/network/action/VLAN
{
   "data": {
     "description": "org.freedesktop.DBus.Error.NoReply"
   },
   "message": "Remote peer disconnected",
   "status": "error"
}

or using bustl

kury at kury-ubuntu-1604:~$ ssh 192.168.4.186 -l root
root at 192.168.4.186's password:
root at tiogapas2:~# busctl call xyz.openbmc_project.Network 
/xyz/openbmc_project/network xyz.openbmc_project.Network.VLAN.Create 
VLAN su "eth1" 101
Remote peer disconnected

Perhaps the syntax has changed? Or do I need to change the build settings?
Enumarate works correctly

kury at kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: 
application/json" -X GET 
https://${bmc}/xyz/openbmc_project/network/enumerate
{
   "data": {
     "/xyz/openbmc_project/network/config": {
       "DefaultGateway": "192.168.4.1",
       "DefaultGateway6": "",
       "HostName": "tiogapas2"
     },
     "/xyz/openbmc_project/network/config/dhcp": {
       "DNSEnabled": true,
       "HostNameEnabled": true,
       "NTPEnabled": true,
       "SendHostNameEnabled": true
     },
     "/xyz/openbmc_project/network/eth0": {
       "AutoNeg": false,
       "DHCPEnabled": true,
       "DomainName": [],
       "IPv6AcceptRA": false,
       "InterfaceName": "eth0",
       "LinkLocalAutoConf": 
"xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
       "MACAddress": "a6:1f:e2:d4:fc:20",
       "NTPServers": [],
       "Nameservers": [],
       "Speed": 0
     },
     "/xyz/openbmc_project/network/eth0/ipv4/48f8ed70": {
       "Address": "192.168.4.186",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",
       "PrefixLength": 24,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
     },
     "/xyz/openbmc_project/network/eth0/ipv4/ee4bea56": {
       "Address": "169.254.5.72",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
       "PrefixLength": 16,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
     },
     "/xyz/openbmc_project/network/eth0/ipv6/60f50253": {
       "Address": "fe80::a41f:e2ff:fed4:fc20",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
       "PrefixLength": 64,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"
     },
     "/xyz/openbmc_project/network/eth1": {
       "AutoNeg": false,
       "DHCPEnabled": true,
       "DomainName": [],
       "IPv6AcceptRA": false,
       "InterfaceName": "eth1",
       "LinkLocalAutoConf": 
"xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
       "MACAddress": "d6:92:52:7d:5:c8",
       "NTPServers": [],
       "Nameservers": [],
       "Speed": 0
     },
     "/xyz/openbmc_project/network/eth1/ipv4/42f65a13": {
       "Address": "192.168.4.187",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",
       "PrefixLength": 24,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
     },
     "/xyz/openbmc_project/network/eth1/ipv4/4f48d4d1": {
       "Address": "169.254.241.120",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
       "PrefixLength": 16,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
     },
     "/xyz/openbmc_project/network/eth1/ipv6/7fc4e2e8": {
       "Address": "fe80::d492:52ff:fe7d:5c8",
       "Gateway": "",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
       "PrefixLength": 64,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"
     },
     "/xyz/openbmc_project/network/host0/intf": {
       "MACAddress": "00:00:00:00:00:00"
     },
     "/xyz/openbmc_project/network/host0/intf/addr": {
       "Address": "0.0.0.0",
       "Gateway": "0.0.0.0",
       "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.Static",
       "PrefixLength": 0,
       "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
     },
     "/xyz/openbmc_project/network/sit0": {
       "AutoNeg": false,
       "DHCPEnabled": true,
       "DomainName": [],
       "IPv6AcceptRA": false,
       "InterfaceName": "sit0",
       "LinkLocalAutoConf": 
"xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
       "MACAddress": "0:0:0:0:0:0",
       "NTPServers": [],
       "Nameservers": [],
       "Speed": 0
     },
     "/xyz/openbmc_project/network/snmp/manager": {}
   },
   "message": "200 OK",
   "status": "ok"
   "status": "ok"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191126/d62cabda/attachment-0001.htm>


More information about the openbmc mailing list