[PVE-User] My suggestion about explicit name in bridge configuration

Diaolin diaolin at diaolin.com
Fri Feb 14 11:30:53 CET 2014


Now i did a little change to the code

only for testing

attached the file....

it works ok with

pvesh set nodes/localhost/network/vmbr0 -network_name "mylan"

this is the result

iface vmbr0 inet manual
	address  192.168.1.55
	netmask  255.255.255.0
	gateway  192.168.1.253
	bridge_ports eth0
	bridge_stp off
	bridge_fd 0
	network_name mylan

the additional parameter gives no problem to ifconfig
and to the network scripts

pvesh get nodes/localhost/network/vmbr0

works ok

200 OK
{
    "active" : 1,
    "address" : "192.168.1.55",
    "autostart" : 1,
    "bridge_fd" : "0",
    "bridge_ports" : "eth0",
    "bridge_stp" : "off",
    "exists" : 1,
    "gateway" : "192.168.1.253",
    "method" : "manual",
    "netmask" : "255.255.255.0",
    "network_name" : "mylan",
    "priority" : 4,
    "type" : "bridge"
}

but from the interface (js) i've always the same error when entering
network_name via gui.

Parameter verification failed. (400)

network_name: property is not defined in schema and the schema does not 
allow additional properties

How can I add this property to the schema used by js?

Tx, Diaolin






---
S’à destacà l’ultima föia dal bósch nét
crodàda l’ei, solàgna, ‘n mèzz ai sàssi
e ‘ntant fis-ciava ‘n zìfol de oseleti
a tegnìr vìo ‘l pensér che vèn matìna
[Diaolin]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changes-proxmox-3.1.diff
Type: text/x-diff
Size: 1260 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20140214/b968b147/attachment.diff>


More information about the pve-user mailing list