From 3244a98433c769a9c8df52f5a493edc157372dc2 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 17 May 2011 12:40:21 -0400 Subject: [PATCH] fix typo --- sfa/rspecs/sfa_rspec.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sfa/rspecs/sfa_rspec.py b/sfa/rspecs/sfa_rspec.py index ae833282..8cf1c8b1 100755 --- a/sfa/rspecs/sfa_rspec.py +++ b/sfa/rspecs/sfa_rspec.py @@ -4,15 +4,21 @@ from StringIO import StringIO from sfa.rspecs.rspec import RSpec from sfa.util.xrn import * from sfa.util.plxrn import hostname_to_urn -from sfa.util.config import Config +from sfa.util.config import Config +from sfa.rspecs.rspec_version import RSpecVersion +_version = { 'type': 'SFA', + 'version': '1' +} + +sfa_rspec_version = RSpecVersion(_sfa_rspec_version) + class SfaRSpec(RSpec): xml = None header = '\n' - namespaces = {} - format = 'sfa' - type = 'sfa' + version = sfa_rspec_version + ################### # Parser ################### @@ -193,7 +199,7 @@ class SfaRSpec(RSpec): if 'interfaces' in node: for interface in node['interfaces']: if 'bwlimit' in interface and interface['bwlimit']: - bwlimit = etree.SubElement(node_tag, 'bw_limit', units='kbps').tet = str(interface['bwlimit']/1000) + bwlimit = etree.SubElement(node_tag, 'bw_limit', units='kbps').text = str(interface['bwlimit']/1000) if 'tags' in node: for tag in node['tags']: # expose this hard wired list of tags, plus the ones that are marked 'sfa' in their category -- 2.43.0