X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Frspecs%2Felements%2Fversions%2Fsfav1Node.py;h=f62cc71822f15a007b803c6fe7da46cff05d0b8e;hb=7cea063f8976f5709cf34e4c3e6d08592ce64fa2;hp=f93ff323f8a7979bbb6459a786e20c9b80373304;hpb=45a8a928ab6094f50d6745db1bd617d112fd6c72;p=sfa.git diff --git a/sfa/rspecs/elements/versions/sfav1Node.py b/sfa/rspecs/elements/versions/sfav1Node.py index f93ff323..f62cc718 100644 --- a/sfa/rspecs/elements/versions/sfav1Node.py +++ b/sfa/rspecs/elements/versions/sfav1Node.py @@ -2,7 +2,6 @@ from sfa.util.sfalogging import logger from sfa.util.xml import XpathFilter from sfa.util.plxrn import PlXrn, xrn_to_hostname from sfa.util.xrn import Xrn - from sfa.rspecs.elements.element import Element from sfa.rspecs.elements.node import Node from sfa.rspecs.elements.sliver import Sliver @@ -54,7 +53,7 @@ class SFAv1Node: location_elems = Element.add_elements(node_elem, 'location', node.get('location', []), Location.fields) interface_elems = Element.add_elements(node_elem, 'interface', - node.get('interfaces', []), Interface.fields) + node.get('interfaces', []), ['component_id', 'client_id', 'ipv4']) #if 'bw_unallocated' in node and node['bw_unallocated']: # bw_unallocated = etree.SubElement(node_elem, 'bw_unallocated', units='kbps').text = str(int(node['bw_unallocated'])/1000)