punch wan_mac through cordsubscriber API
diff --git a/xos/core/xoslib/methods/cordsubscriber.py b/xos/core/xoslib/methods/cordsubscriber.py
index 792bc42..5742c9c 100644
--- a/xos/core/xoslib/methods/cordsubscriber.py
+++ b/xos/core/xoslib/methods/cordsubscriber.py
@@ -49,6 +49,8 @@
nat_ip = ReadOnlyField()
private_ip = ReadOnlyField()
+ wan_mac = ReadOnlyField()
+
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
class Meta:
@@ -60,7 +62,7 @@
'url_filter_enable', 'url_filter_rules', 'url_filter_level',
'bbs_account',
'ssh_command',
- 'cdn_enable', 'vbng_id', 'routeable_subnet', 'nat_ip', 'lan_ip', 'wan_ip', 'private_ip')
+ 'cdn_enable', 'vbng_id', 'routeable_subnet', 'nat_ip', 'lan_ip', 'wan_ip', 'private_ip', 'wan_mac')
def getHumanReadableName(self, obj):
diff --git a/xos/core/xoslib/objects/cordsubscriber.py b/xos/core/xoslib/objects/cordsubscriber.py
index 97624f1..4719a13 100644
--- a/xos/core/xoslib/objects/cordsubscriber.py
+++ b/xos/core/xoslib/objects/cordsubscriber.py
@@ -49,6 +49,7 @@
("lan_ip", "vcpe.lan_ip"),
("private_ip", "vcpe.private_ip"),
("wan_ip", "vcpe.wan_ip"),
+ ("wan_mac", "vcpe.wan_mac"),
)
def __getattr__(self, key):